Skip to content

Instantly share code, notes, and snippets.

@andersonqi
Created February 4, 2017 05:18
Show Gist options
  • Save andersonqi/e1e85bb73ee965bb972876f5f494ce7b to your computer and use it in GitHub Desktop.
Save andersonqi/e1e85bb73ee965bb972876f5f494ce7b to your computer and use it in GitHub Desktop.
Arrays Go
from package
import "fmt"
func main() {
var a[5] int
fmt.Println("emp:", a)
fmt.Println("get:", len(a))
b := [5]int{1,2,3,4,5}
fmt.Println("dcl:", b)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment