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

Function stripLeadingSpace

parser/util.go:15–20  ·  view source on GitHub ↗
(b []byte)

Source from the content-addressed store, hash-verified

13const mangleSuffix = "422016"
14
15func stripLeadingSpace(b []byte) []byte {
16 for len(b) > 0 && isSpace(b[0]) {
17 b = b[1:]
18 }
19 return b
20}
21
22func stripTrailingSpace(b []byte) []byte {
23 for len(b) > 0 && isSpace(b[len(b)-1]) {

Callers 3

parseSwitchMethod · 0.85
parseFuncDefFunction · 0.85
stripSpaceExtFunction · 0.85

Calls 1

isSpaceFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…