MCPcopy Create free account
hub / github.com/chain/Core / prefix

Function prefix

log/log.go:98–101  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

96}
97
98func prefix(ctx context.Context) []byte {
99 b, _ := ctx.Value(prefixKey).([]byte)
100 return b
101}
102
103// Printkv prints a structured log entry to stdout. Log fields are
104// specified as a variadic sequence of alternating keys and values.

Callers 6

TestAddPrefixkv0Function · 0.85
TestAddPrefixkv1Function · 0.85
TestAddPrefixkv2Function · 0.85
AddPrefixkvFunction · 0.85
PrintkvFunction · 0.85

Calls 1

ValueMethod · 0.45

Tested by 4

TestAddPrefixkv0Function · 0.68
TestAddPrefixkv1Function · 0.68
TestAddPrefixkv2Function · 0.68