Go Maps: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
Line 12: | Line 12: | ||
<pre> | <pre> | ||
var m map[string] | var map_identifier map[key_type]value_type | ||
</pre> | |||
Example: | |||
<pre> | |||
var m map[string]string | |||
</pre> | </pre> | ||
Revision as of 02:24, 28 March 2016
Internal
Overview
A map is an unordered collection of key-value pairs.
Declaration
Long Declaration
var map_identifier map[key_type]value_type
Example:
var m map[string]string