Go maps generalized to interfaces which implement Int() or String methods
Go
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
Makefile
README
maps.go
maps_test.go

README

Generalized maps for the Go Programming Language: 
------------------------------------------------

- These containers aim at storing aggregate types.
- These maps accept as keys all interfaces which implement a Key() method (or a String() or an Int() method respectively), see example maps_test.go.
thereby generalizing the Go built-in map type to aggregate types.

Thanks to Nigel Tao and Roger Peppe for their suggestions and support !

Serge Hulne.