github.com/go-git/gcfg/token.Position.Offset (field)
13 uses
go/ast
commentmap.go#L178: qpos.Offset = infinity
commentmap.go#L183: for r.end.Offset <= qpos.Offset {
go/build
read.go#L102: r.pos.Offset++
read.go#L481: pos.Offset += n
go/printer
printer.go#L137: p.commentOffset = p.posFor(list[0].Pos()).Offset
printer.go#L153: return p.commentOffset < next.Offset && (!p.impliedSemi || !p.commentNewline)
printer.go#L228: p.pos.Offset += n
printer.go#L260: p.pos.Offset += n
printer.go#L327: p.pos.Offset += len(s)
printer.go#L1314: p.flush(token.Position{Offset: infinity, Line: infinity}, token.EOF)
go/token
position.go#L22: Offset int // offset, starting at 0
position.go#L336: pos.Offset = offset
![]() |
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. |