Skip to content

Instantly share code, notes, and snippets.

@victorsteven
Created June 24, 2019 08:42
Show Gist options
  • Select an option

  • Save victorsteven/8fda1878494e51efa3cd9b324a697ca6 to your computer and use it in GitHub Desktop.

Select an option

Save victorsteven/8fda1878494e51efa3cd9b324a697ca6 to your computer and use it in GitHub Desktop.
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