Skip to content

Instantly share code, notes, and snippets.

@parvezmrobin
Last active October 16, 2019 04:01
Show Gist options
  • Save parvezmrobin/e1e2d554cc8c4134c30250146c2743dd to your computer and use it in GitHub Desktop.
Save parvezmrobin/e1e2d554cc8c4134c30250146c2743dd to your computer and use it in GitHub Desktop.
package main
func main() {
var a [2]string
a[0] = "Hello"
a[1] = "World"
println(a[0], a[1]) // Hello World
primes := [6]int{2, 3, 5, 7, 11, 13}
println(primes[0], primes[1], primes[2], primes[3], primes[4], primes[5])
// 2 3 5 7 11 13
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment