Creating an Array slice
The built-in function make () provided by the go language can be used to flexibly create array slices.
Create an array slice with an initial element number of 5, with an element initial value of 0:
MySlice1: = Make ([]int, 5)
Create an array slice with an initial element number of 5, an element with an initial value of 0, and a storage space of 10 elements:
MySlice2: = Make ([]int, 5, 10)
Create a map
MyMap = Make (map[string
A key was created map.//from:http://www.cnblogs.com/osfipin/of type string, value type Personinfo
MyMap = Make (map[string
You can also choose whether to specify the initial storage capacity of the map at creation time, creating an initial storage capability a map of 100.
MyMap = map[string] personinfo{ "1234": personinfo{" 1"Jack""101,... "
Create and initialize the code for the map.
Go language common functions: Make