MCPcopy Create free account

hub / github.com/cnf/structhash / functions

Functions39 in github.com/cnf/structhash

↓ 21 callersFunctionDump
Dump takes a data structure and returns its byte representation. This can be useful if you need to use your own hashing function or formatter.
structhash.go:46
↓ 13 callersFunctionHash
Hash takes a data structure and returns a hash string of that data structure at the version asked. This function uses md5 hashing function and defaul
structhash.go:40
↓ 10 callersMethodError
()
structhash.go:99
↓ 4 callersFunctionMd5
Md5 takes a data structure and returns its md5 hash. This is a shorthand for md5.Sum(Dump(c, version)).
structhash.go:52
↓ 4 callersFunctionbenchDataSimple
()
structhash_benchmark_test.go:25
↓ 2 callersFunctionVersion
Version returns the version of the supplied hash as an integer or -1 on failure
structhash.go:18
↓ 2 callersFunctionbenchDataFull
()
structhash_benchmark_test.go:29
↓ 2 callersFunctionbenchDataTags
()
structhash_benchmark_test.go:45
↓ 2 callersFunctionwriteValue
(buf *bytes.Buffer, val reflect.Value, fltr structFieldFilter)
structhash.go:105
↓ 1 callersMethodLen
()
structhash.go:85
↓ 1 callersFunctiondataSetup
()
structhash_test.go:79
↓ 1 callersFunctionfilterField
(f reflect.StructField, i *item, version int)
structhash.go:214
↓ 1 callersFunctionformatValue
(val reflect.Value, fltr structFieldFilter)
structhash.go:203
↓ 1 callersFunctionserialize
(object interface{}, version int)
structhash.go:267
FunctionBenchmarkFullDump
(b *testing.B)
structhash_benchmark_test.go:73
FunctionBenchmarkFullJSON
(b *testing.B)
structhash_benchmark_test.go:65
FunctionBenchmarkSimpleDump
(b *testing.B)
structhash_benchmark_test.go:57
FunctionBenchmarkSimpleJSON
(b *testing.B)
structhash_benchmark_test.go:49
FunctionBenchmarkTagsDump
(b *testing.B)
structhash_benchmark_test.go:89
FunctionBenchmarkTagsJSON
(b *testing.B)
structhash_benchmark_test.go:81
FunctionExampleDump
()
structhash_examples_test.go:93
FunctionExampleHash
()
structhash_examples_test.go:11
FunctionExampleHash_tags
()
structhash_examples_test.go:46
FunctionExampleVersion
()
structhash_examples_test.go:130
FunctionExampleVersion_errors
()
structhash_examples_test.go:138
MethodLess
(i, j int)
structhash.go:93
MethodNormalize
()
structhash_test.go:75
MethodSerialize
()
structhash_test.go:71
FunctionSha1
Sha1 takes a data structure and returns its sha1 hash. This is a shorthand for sha1.Sum(Dump(c, version)).
structhash.go:59
FunctionSha256
Sha256 takes a data structure and returns its SHA 256 hash. This is a shorthand for sha256.Sum256(Dump(c, version)).
structhash.go:66
FunctionSha512
Sha512 takes a data structure and returns its SHA 512 hash. This is a shorthand for sha512.Sum512(Dump(c, version)).
structhash.go:73
MethodSwap
(i, j int)
structhash.go:89
FunctionTestHash
(t *testing.T)
structhash_test.go:100
FunctionTestInterfaceField
(t *testing.T)
structhash_test.go:202
FunctionTestMethod
(t *testing.T)
structhash_test.go:271
FunctionTestMethodPanic
(t *testing.T)
structhash_test.go:285
FunctionTestNils
(t *testing.T)
structhash_test.go:156
FunctionTestTags
(t *testing.T)
structhash_test.go:132
FunctionTestUnexportedFields
(t *testing.T)
structhash_test.go:180