Created
June 6, 2018 15:40
-
-
Save jjuliano/ae8c32e33f2d07eebc58f2457f28e541 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 | |
array := make([]string, MAX_ARRAY_SIZE) | |
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