Ecosyste.ms: Packages

An open API service providing package, version and dependency metadata of many open source software ecosystems and registries.

Top 5.8% dependent packages on proxy.golang.org
Top 4.7% dependent repos on proxy.golang.org

proxy.golang.org : modernc.org/hash

Package hash implements a hash map. Maps provided by this package can be useful when using a key type that is not comparable at the language level, like for example a slice or types containing slices etc. Such types are forbidden as keys of the builtin Go maps for good reasons. Care must be taken to not modify keys inserted into a Map. Keys and their associated values are interface{} typed, similar to all of the containers in the standard library. Semiautomatic production of a type specific variant of this package is supported via This command will write to stdout a version of the hash.go file where every key type occurrence is replaced by the word 'KEY' and every value type occurrence is replaced by the word 'VALUE'. Then you have to replace these tokens with your desired type(s), using any technique you're comfortable with. This is how, for example, 'example/int.go' was created: After adding import "math/big", no other changes to int.go are necessary, it compiles just fine.

Registry - Source - Documentation - JSON
purl: pkg:golang/modernc.org/hash
License: BSD-3-Clause
Latest release: 10 months ago
First release: over 5 years ago
Namespace: modernc.org
Dependent packages: 1
Dependent repositories: 1
Stars: 0 on GitLab.com
Forks: 0 on GitLab.com
See more repository details: repos.ecosyste.ms
Last synced: about 1 month ago

    Loading...
    Readme
    Loading...