MCPcopy
hub / github.com/valyala/quicktemplate / snippet

Function snippet

parser/scanner.go:462–467  ·  view source on GitHub ↗
(s []byte)

Source from the content-addressed store, hash-verified

460}
461
462func snippet(s []byte) string {
463 if len(s) <= 40 {
464 return fmt.Sprintf("%q", s)
465 }
466 return fmt.Sprintf("%q ... %q", s[:20], s[len(s)-20:])
467}

Callers 1

ContextMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…