Go maps in action - The Go Programming Language
go.dev · 1,411 words · saved by 1 readers
How and when to use Go maps.
Go maps in action - The Go Programming Language The Go Blog Go maps in action Andrew Gerrand 6 February 2013 Introduction One of the most useful data structures in computer science is the hash table. Many hash table implementations exist with varying properties, but in general they offer fast lookups, adds, and deletes. Go provides a built-in map type that implements a hash table. Declaration and initialization A Go map type looks like this: map[KeyType]ValueType where KeyType may be any type that is comparable (more on this later), and ValueType may be any type at all, including another map!
related reading
- golang map, golang maps, map in golang, golang map literalgolinuxcloud.com
- Go Maps Explained: How Key-Value Pairs Are Actually Storedvictoriametrics.com
- Go Slices: usage and internals - The Go Programming Languagego.dev
- Go Mapsw3schools.com
- Frequently Asked Questions (FAQ) - The Go Programming Languagego.dev
- Demystifying Function Parameters in Go- Alex Edwardsalexedwards.net
- Notes on structured concurrency, or: Go statement considered harmful - njs blogvorpus.org
- Go go-to guide · YourBasicyourbasic.org
- Golang landminesgist.github.com
- Effective Go - The Go Programming Languagego.dev
- Pointers & errors | Learn Go with testsquii.gitbook.io
- The Go Memory Model - The Go Programming Languagego.dev