/go-maps

Go maps generalized to interfaces which implement Int() or String methods

Primary LanguageGo

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.