RosettaCodeData/Task/Loops-Foreach/Go/loops-foreach.go
2023-07-01 13:44:08 -04:00

5 lines
108 B
Go

func printAll(values []int) {
for i, x := range values {
fmt.Printf("Item %d = %d\n", i, x)
}
}