const text/template/parse.trimMarkerLen
6 uses
text/template/parse (current package)
lex.go#L102: trimMarkerLen = Pos(1 + 1) // marker plus space before or after
lex.go#L280: if hasRightTrimMarker(l.input[l.pos:]) && strings.HasPrefix(l.input[l.pos+trimMarkerLen:], l.rightDelim) { // With trim marker.
lex.go#L300: afterMarker = trimMarkerLen
lex.go#L330: l.pos += trimMarkerLen
lex.go#L344: l.pos += trimMarkerLen
lex.go#L439: if hasRightTrimMarker(l.input[l.pos-1:]) && strings.HasPrefix(l.input[l.pos-1+trimMarkerLen:], l.rightDelim) {
 |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |