Registry / utility / cnf-structhash

cnf-structhash

JSON →
library0.0.0-20201127153200-e1b16c1ebc08gogounverified

Package structhash creates hash strings from arbitrary Go data structures.

go get github.com/cnf/structhash
INSTALL
IMPORT
SIG · CNF-STRUCTHASH
C
cnf-structhash
utilitygov0.0.0-20201127153200-e1b16c1ebc08
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.

structhash
github.com/cnf/structhash

Compute a hash string for a struct.

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

No known issues recorded.

Upgrade
Version history
0.0.0-20201127153200-e1b16c1ebc08latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
cnf-structhash — go get cnf-structhash · libregistry