Last active
December 16, 2019 11:14
-
-
Save jjuliano/3340ec362e3c9cd338e0136f0aaaa5f0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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