mirror of https://github.com/golang/go.git
parent
220edc48da
commit
febbf82e8d
|
|
@ -705,7 +705,7 @@ if a specified size is less than the number of elements in the expression list.
|
||||||
Map literals are similar except the elements of the expression list are
|
Map literals are similar except the elements of the expression list are
|
||||||
key-value pairs separated by a colon:
|
key-value pairs separated by a colon:
|
||||||
|
|
||||||
m := map[string]int("good":0, "bad":1, "indifferent": 7)
|
m := map[string]int("good":0, "bad":1, "indifferent":7)
|
||||||
|
|
||||||
TODO: helper syntax for nested arrays etc? (avoids repeating types but
|
TODO: helper syntax for nested arrays etc? (avoids repeating types but
|
||||||
complicates the spec needlessly.)
|
complicates the spec needlessly.)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue