golang tutorial - Maps In Golang | Maps Go - golang - go programming language - google go - go language - go program - google language
Maps In Golang
- Go provides another important data type map which maps unique keys to values.
- A key is an object that you use to retrieve a value at a later date.
- Given a key and a value, you can store the value in a Map object. After value is stored, you can retrieve it by using its key.
Defining a map
Example for creation and usage of map
golang , gopro , google go , golang tutorial , google language , go language , go programming language
Output for the above golang programming
golang , gopro , google go , golang tutorial , google language , go language , go programming language
delete() function
- delete() function is used to delete an entry from the map. It requires map and corresponding key which is to be deleted.