MCPcopy Create free account
hub / github.com/subtrace/subtrace / cstr

Function cstr

cmd/version/version.go:89–95  ·  view source on GitHub ↗
(b []byte)

Source from the content-addressed store, hash-verified

87}
88
89func cstr(b []byte) string {
90 end := bytes.IndexByte(b, 0)
91 if end != -1 {
92 return string(b[:end])
93 }
94 return string(b)
95}
96
97func (c *Command) entrypoint(ctx context.Context, args []string) error {
98 fmt.Printf("%s\n", Full(c.flags.json))

Callers 1

FullFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected