go/token.File.Offset (method)
6 uses
go/token (current package)
position.go#L279: func (f *File) Offset(p Pos) int {
go/parser
parser.go#L539: _ = p.file.Offset(pos) // trigger a panic if position is out-of-range
go/scanner
scanner.go#L883: s.offset = s.file.Offset(pos)
scanner.go#L928: s.errorf(s.file.Offset(pos), "illegal character %#U", ch)
golang.org/x/pkgsite/internal/godoc/dochtml/internal/render
linkify.go#L238: offset := file.Offset(p) // current offset into source file
linkify.go#L430: offset := file.Offset(p) // current offset into source file
![]() |
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. |