https://github.com/kevinmichaelchen/go-map-from-lists
Implement a map (hash table) from 2 lists using binary search
https://github.com/kevinmichaelchen/go-map-from-lists
Last synced: 3 months ago
JSON representation
Implement a map (hash table) from 2 lists using binary search
- Host: GitHub
- URL: https://github.com/kevinmichaelchen/go-map-from-lists
- Owner: kevinmichaelchen
- Created: 2019-04-23T18:51:04.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2019-04-26T15:53:54.000Z (about 6 years ago)
- Last Synced: 2025-02-23T22:43:39.335Z (3 months ago)
- Language: Go
- Size: 7.81 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# go-map-from-lists
Google Cloud Datastore disallows using `map[string]string` on entities.
To get around this limitation, we implement a data structure that emulates a
Go [`map`](https://blog.golang.org/go-maps-in-action)
(see [associative array](https://en.wikipedia.org/wiki/Associative_array))
using only ["slices"](https://blog.golang.org/go-slices-usage-and-internals).