Go: Maps

You must use make function to create a map.

/* declare a variable, by default map will be nil*/ var map_variable map[key_data_type]value_data_type

/* create a map as nil map can not be assigned any value*/
map_variable = make(map[key_data_type]value_data_type)

delete() Function

/* delete an entry */

Leave a Reply

Your email address will not be published. Required fields are marked *