MCPcopy Index your code
hub / github.com/subtrace/subtrace / getExecutableHash

Function getExecutableHash

cmd/version/version.go:51–58  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

49var executableHash = "unknown"
50
51func getExecutableHash() string {
52 executableHashOnce.Do(func() {
53 if hash, err := getExecutableHashInner(); err == nil {
54 executableHash = hash
55 }
56 })
57 return executableHash
58}
59
60func GetCanonicalString() string {
61 ret := fmt.Sprintf("%s-%s", Release, CommitHash)

Callers 2

GetCanonicalStringFunction · 0.85
FullFunction · 0.85

Calls 1

getExecutableHashInnerFunction · 0.85

Tested by

no test coverage detected