package
0.0.0-20200526015148-b343531734ec
Repository: https://github.com/fakorede/learning-golang.git
Documentation: pkg.go.dev
# README
Looping Over Slices
The range
clause allows us to easily loop over arrays, slices, strings and so on. It returns two values, the index variable
and the next value
.
Syntax
for i, v := range words {
}
where words is a slice.
Usage
go run main.go