Skip to content

Instantly share code, notes, and snippets.

@jjuliano
Last active December 16, 2019 11:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jjuliano/3340ec362e3c9cd338e0136f0aaaa5f0 to your computer and use it in GitHub Desktop.
Save jjuliano/3340ec362e3c9cd338e0136f0aaaa5f0 to your computer and use it in GitHub Desktop.
const MAX_ARRAY_SIZE = 2
var array [MAX_ARRAY_SIZE]string
array[0] = "foo"
array[1] = "bar"
fmt.Println(array[0])
fmt.Println(array[1])
fmt.Println(array)
// foo
// bar
// [foo bar]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment