Registry / utility / mitchellh-hashstructure

mitchellh-hashstructure

JSON →
library1.1.0gogounverified

Package hashstructure provides a way to generate hash values for arbitrary Go values, useful for caching and deduplication.

go get github.com/mitchellh/hashstructure
INSTALL
IMPORT
SIG · MITCHELLH-HASHSTRU
M
mitchellh-hashstructure
utilitygov1.1.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

hashstructure
github.com/mitchellh/hashstructure

Hashes a struct and prints the hash value.

package main import ( "fmt" "github.com/mitchellh/hashstructure" ) func main() { type Person struct { Name string Age int } hash, _ := hashstructure.Hash(Person{Name: "Alice", Age: 30}, nil) fmt.Println(hash) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.1.0latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
3 hits · last 30 days
node
2
Amazon
1
Resources
mitchellh-hashstructure — go get mitchellh-hashstructure · libregistry