type text/template/parse.Pos
69 uses
text/template/parse (current package)
lex.go#L17: pos Pos // The starting position, in bytes, of this item in the input string.
lex.go#L102: trimMarkerLen = Pos(1 + 1) // marker plus space before or after
lex.go#L115: pos Pos // current position in the input
lex.go#L116: start Pos // start position of this item
lex.go#L117: width Pos // width of last rune read from input
lex.go#L131: l.width = Pos(w)
lex.go#L248: ldn := Pos(len(l.leftDelim))
lex.go#L249: l.pos += Pos(x)
lex.go#L250: trimLength := Pos(0)
lex.go#L263: l.pos = Pos(len(l.input))
lex.go#L274: func rightTrimLength(s string) Pos {
lex.go#L275: return Pos(len(s) - len(strings.TrimRight(s, spaceChars)))
lex.go#L290: func leftTrimLength(s string) Pos {
lex.go#L291: return Pos(len(s) - len(strings.TrimLeft(s, spaceChars)))
lex.go#L296: l.pos += Pos(len(l.leftDelim))
lex.go#L298: afterMarker := Pos(0)
lex.go#L316: l.pos += Pos(len(leftComment))
lex.go#L321: l.pos += Pos(i + len(rightComment))
lex.go#L332: l.pos += Pos(len(l.rightDelim))
lex.go#L347: l.pos += Pos(len(l.rightDelim))
lex.go#L393: if l.pos < Pos(len(l.input)) {
node.go#L27: Position() Pos // byte position of start of node in full original input string
node.go#L40: type Pos int
node.go#L42: func (p Pos) Position() Pos {
node.go#L81: Pos
node.go#L86: func (t *Tree) newList(pos Pos) *ListNode {
node.go#L128: Pos
node.go#L133: func (t *Tree) newText(pos Pos, text string) *TextNode {
node.go#L156: Pos
node.go#L161: func (t *Tree) newComment(pos Pos, text string) *CommentNode {
node.go#L188: Pos
node.go#L196: func (t *Tree) newPipeline(pos Pos, line int, vars []*VariableNode) *PipeNode {
node.go#L257: Pos
node.go#L263: func (t *Tree) newAction(pos Pos, line int, pipe *PipeNode) *ActionNode {
node.go#L291: Pos
node.go#L296: func (t *Tree) newCommand(pos Pos) *CommandNode {
node.go#L343: Pos
node.go#L356: func (i *IdentifierNode) SetPos(pos Pos) *IdentifierNode {
node.go#L389: Pos
node.go#L394: func (t *Tree) newVariable(pos Pos, ident string) *VariableNode {
node.go#L424: Pos
node.go#L428: func (t *Tree) newDot(pos Pos) *DotNode {
node.go#L458: Pos
node.go#L462: func (t *Tree) newNil(pos Pos) *NilNode {
node.go#L494: Pos
node.go#L499: func (t *Tree) newField(pos Pos, ident string) *FieldNode {
node.go#L529: Pos
node.go#L535: func (t *Tree) newChain(pos Pos, node Node) *ChainNode {
node.go#L582: Pos
node.go#L587: func (t *Tree) newBool(pos Pos, true bool) *BoolNode {
node.go#L615: Pos
node.go#L628: func (t *Tree) newNumber(pos Pos, text string, typ itemType) (*NumberNode, error) {
node.go#L752: Pos
node.go#L758: func (t *Tree) newString(pos Pos, orig, text string) *StringNode {
node.go#L782: Pos
node.go#L786: func (t *Tree) newEnd(pos Pos) *endNode {
node.go#L809: Pos
node.go#L814: func (t *Tree) newElse(pos Pos, line int) *elseNode {
node.go#L841: Pos
node.go#L902: func (t *Tree) newIf(pos Pos, line int, pipe *PipeNode, list, elseList *ListNode) *IfNode {
node.go#L915: func (t *Tree) newRange(pos Pos, line int, pipe *PipeNode, list, elseList *ListNode) *RangeNode {
node.go#L928: func (t *Tree) newWith(pos Pos, line int, pipe *PipeNode, list, elseList *ListNode) *WithNode {
node.go#L939: Pos
node.go#L946: func (t *Tree) newTemplate(pos Pos, line int, name string, pipe *PipeNode) *TemplateNode {
parse.go#L479: func (t *Tree) parseControl(allowElseIf bool, context string) (pos Pos, line int, pipe *PipeNode, list, elseList *ListNode) {
parse.go#L745: func (t *Tree) useVar(pos Pos, name string) Node {
github.com/google/safehtml/template
escape.go#L265: func newIdentCmd(identifier string, pos parse.Pos) *parse.CommandNode {
html/template
escape.go#L386: func newIdentCmd(identifier string, pos parse.Pos) *parse.CommandNode {
 |
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. |