MCPcopy Index your code
hub / github.com/tailscale/tailscale / strhash

Function strhash

control/controlclient/map.go:1287–1291  ·  view source on GitHub ↗
(h string)

Source from the content-addressed store, hash-verified

1285}
1286
1287func strhash(h string) string {
1288 s := sha256.New()
1289 io.WriteString(s, h)
1290 return hex.EncodeToString(s.Sum(nil))
1291}

Callers 1

netmapMethod · 0.85

Calls 3

WriteStringMethod · 0.80
NewMethod · 0.45
SumMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…