Created
February 4, 2017 05:18
-
-
Save andersonqi/e1e85bb73ee965bb972876f5f494ce7b to your computer and use it in GitHub Desktop.
Arrays Go
This file contains 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
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