Answers for "for each range loop golang"

Go
2

For-Range loop in golang

entry := []string{"Jack","John","Jones"}
for i, val := range entry {
  fmt.Printf("At position %d, the character %s is present\n", i, val)
}
Posted by: Guest on December-29-2021

Browse Popular Code Answers by Language