Created
June 24, 2019 08:42
-
-
Save victorsteven/8fda1878494e51efa3cd9b324a697ca6 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
| package main | |
| import "fmt" | |
| func main() { | |
| //Function scope array: | |
| integerArray := [5]int{10, 20, 30, 40, 50} | |
| stringArray := [4]string{"first", "second", "third", "fourth"} | |
| fmt.Println("This is the integer array: ", integerArray) | |
| fmt.Println("This is the string array: ", stringArray) | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment