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

Function stripTrailingSpace

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

Source from the content-addressed store, hash-verified

20}
21
22func stripTrailingSpace(b []byte) []byte {
23 for len(b) > 0 && isSpace(b[len(b)-1]) {
24 b = b[:len(b)-1]
25 }
26 return b
27}
28
29func collapseSpace(b []byte) []byte {
30 return stripSpaceExt(b, true)

Callers 4

emitCommentMethod · 0.85
parseInterfaceMethod · 0.85
readTagContentsMethod · 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…