text/template/parse.item.pos (field)
24 uses
text/template/parse (current package)
lex.go#L17: pos Pos // The starting position, in bytes, of this item in the input string.
parse.go#L295: t.Root = t.newList(t.peek().pos)
parse.go#L344: list = t.newList(t.peekNonSpace().pos)
parse.go#L362: return t.newText(token.pos, token.val)
parse.go#L368: return t.newComment(token.pos, token.val)
parse.go#L404: return t.newAction(token.pos, token.line, t.pipeline("command", itemRightDelim))
parse.go#L411: pipe = t.newPipeline(token.pos, token.line, nil)
parse.go#L426: pipe.Decl = append(pipe.Decl, t.newVariable(v.pos, v.val))
parse.go#L430: pipe.Decl = append(pipe.Decl, t.newVariable(v.pos, v.val))
parse.go#L540: return t.newEnd(t.expect(itemRightDelim, "end").pos)
parse.go#L551: return t.newElse(peek.pos, peek.line)
parse.go#L554: return t.newElse(token.pos, token.line)
parse.go#L582: return t.newTemplate(token.pos, token.line, name, pipe)
parse.go#L599: return t.newTemplate(token.pos, token.line, name, pipe)
parse.go#L621: cmd := t.newCommand(t.peekNonSpace().pos)
parse.go#L657: chain := t.newChain(t.peek().pos, node)
parse.go#L695: return NewIdentifier(token.val).SetTree(t).SetPos(token.pos)
parse.go#L697: return t.newDot(token.pos)
parse.go#L699: return t.newNil(token.pos)
parse.go#L701: return t.useVar(token.pos, token.val)
parse.go#L703: return t.newField(token.pos, token.val)
parse.go#L705: return t.newBool(token.pos, token.val == "true")
parse.go#L707: number, err := t.newNumber(token.pos, token.val, token.typ)
parse.go#L719: return t.newString(token.pos, token.val, s)
 |
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. |