GoSyntax
Create a Map
Code example
ages := map[string]int{"Ada": 36}Creates key-value pairs.
In Go, create a map: creates key-value pairs — ages := map[string]int{"Ada": 36}
ages := map[string]int{"Ada": 36}ages := map[string]int{"Ada": 36}Creates key-value pairs.
Use ages := map[string]int{"Ada": 36}.
Use this pattern: ages := map[string]int{"Ada": 36}
Yes. Use Copy code and adapt the example to your program.
No. The language syntax is the same across operating systems.