MCPcopy
hub / github.com/jetify-com/devbox / Bytes6

Function Bytes6

internal/cachehash/hash.go:29–32  ·  view source on GitHub ↗

Bytes6 returns the first 6 characters of the hash of b.

(b []byte)

Source from the content-addressed store, hash-verified

27
28// Bytes6 returns the first 6 characters of the hash of b.
29func Bytes6(b []byte) string {
30 hash := Bytes(b)
31 return hash[:min(len(hash), 6)]
32}
33
34// File returns a hex-encoded hash of a file's contents.
35func File(path string) (string, error) {

Callers

nothing calls this directly

Calls 1

BytesFunction · 0.85

Tested by

no test coverage detected