Eli Bendersky 742fab3f1c Clarify slices vs. arrays a bit
Highlight slices in the opening description of the arrays example, to
grab attention of new users
2022-09-08 05:37:20 -07:00

10 lines
201 B
Bash

# Note that arrays appear in the form `[v1 v2 v3 ...]`
# when printed with `fmt.Println`.
$ go run arrays.go
emp: [0 0 0 0 0]
set: [0 0 0 0 100]
get: 100
len: 5
dcl: [1 2 3 4 5]
2d: [[0 1 2] [1 2 3]]