Some insights on Maps in Golangby@avk-ai
10,301 reads
10,301 reads

Some insights on Maps in Golang

by Aleksandr Kochetkov9mMarch 1st, 2020
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

Map is basically key-value storage with really fast lookup. Hash map is based on random seed, so each map is built differently. Map is a pointer to hmap structure, it is mutable! If you need a new one, you shall create a copy of it manually. Hash function will transform keys like that: hash(key)->{1..BN; map(map) = fastrand(); Map is iterable, not ordered, and new iterable is randomized.

Company Mentioned

Mention Thumbnail
featured image - Some insights on Maps in Golang
Aleksandr Kochetkov HackerNoon profile picture
Aleksandr Kochetkov

Aleksandr Kochetkov

@avk-ai

Go developer. Blockchain expert.

About @avk-ai
LEARN MORE ABOUT @AVK-AI'S
EXPERTISE AND PLACE ON THE INTERNET.
L O A D I N G
. . . comments & more!

About Author

Aleksandr Kochetkov HackerNoon profile picture
Aleksandr Kochetkov@avk-ai
Go developer. Blockchain expert.

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite