Quick actions

cmd+k|ctrl+k

Navigation

Languages

Slices / Length and capacity / Essential Go

Snippet info

Language

Go

Visibility

public

Author

kkowalczyk

Created

2019-04-18T17:10:16Z

Updated

2019-04-18T17:10:16Z

package main

import "fmt"

func main() {
	var s = make([]int, 3)
	for idx, val := range s {
		fmt.Println(idx, val)
	}
}
INFO