text/template/parse.lexer.pos (field)

49 uses

	text/template/parse (current package)
		lex.go#L115: 	pos         Pos       // current position in the input
		lex.go#L126: 	if int(l.pos) >= len(l.input) {
		lex.go#L130: 	r, w := utf8.DecodeRuneInString(l.input[l.pos:])
		lex.go#L132: 	l.pos += l.width
		lex.go#L148: 	l.pos -= l.width
		lex.go#L150: 	if l.width == 1 && l.input[l.pos] == '\n' {
		lex.go#L157: 	l.items <- item{t, l.start, l.input[l.start:l.pos], l.startLine}
		lex.go#L158: 	l.start = l.pos
		lex.go#L164: 	l.line += strings.Count(l.input[l.start:l.pos], "\n")
		lex.go#L165: 	l.start = l.pos
		lex.go#L247: 	if x := strings.Index(l.input[l.pos:], l.leftDelim); x >= 0 {
		lex.go#L249: 		l.pos += Pos(x)
		lex.go#L251: 		if hasLeftTrimMarker(l.input[l.pos+ldn:]) {
		lex.go#L252: 			trimLength = rightTrimLength(l.input[l.start:l.pos])
		lex.go#L254: 		l.pos -= trimLength
		lex.go#L255: 		if l.pos > l.start {
		lex.go#L256: 			l.line += strings.Count(l.input[l.start:l.pos], "\n")
		lex.go#L259: 		l.pos += trimLength
		lex.go#L263: 	l.pos = Pos(len(l.input))
		lex.go#L265: 	if l.pos > l.start {
		lex.go#L266: 		l.line += strings.Count(l.input[l.start:l.pos], "\n")
		lex.go#L280: 	if hasRightTrimMarker(l.input[l.pos:]) && strings.HasPrefix(l.input[l.pos+trimMarkerLen:], l.rightDelim) { // With trim marker.
		lex.go#L283: 	if strings.HasPrefix(l.input[l.pos:], l.rightDelim) { // Without trim marker.
		lex.go#L296: 	l.pos += Pos(len(l.leftDelim))
		lex.go#L297: 	trimSpace := hasLeftTrimMarker(l.input[l.pos:])
		lex.go#L302: 	if strings.HasPrefix(l.input[l.pos+afterMarker:], leftComment) {
		lex.go#L303: 		l.pos += afterMarker
		lex.go#L308: 	l.pos += afterMarker
		lex.go#L316: 	l.pos += Pos(len(leftComment))
		lex.go#L317: 	i := strings.Index(l.input[l.pos:], rightComment)
		lex.go#L321: 	l.pos += Pos(i + len(rightComment))
		lex.go#L330: 		l.pos += trimMarkerLen
		lex.go#L332: 	l.pos += Pos(len(l.rightDelim))
		lex.go#L334: 		l.pos += leftTrimLength(l.input[l.pos:])
		lex.go#L342: 	trimSpace := hasRightTrimMarker(l.input[l.pos:])
		lex.go#L344: 		l.pos += trimMarkerLen
		lex.go#L347: 	l.pos += Pos(len(l.rightDelim))
		lex.go#L350: 		l.pos += leftTrimLength(l.input[l.pos:])
		lex.go#L393: 		if l.pos < Pos(len(l.input)) {
		lex.go#L394: 			r := l.input[l.pos]
		lex.go#L439: 	if hasRightTrimMarker(l.input[l.pos-1:]) && strings.HasPrefix(l.input[l.pos-1+trimMarkerLen:], l.rightDelim) {
		lex.go#L458: 			word := l.input[l.start:l.pos]
		lex.go#L569: 		return l.errorf("bad number syntax: %q", l.input[l.start:l.pos])
		lex.go#L573: 		if !l.scanNumber() || l.input[l.pos-1] != 'i' {
		lex.go#L574: 			return l.errorf("bad number syntax: %q", l.input[l.start:l.pos])