go/token.Position.Filename (field)
21 uses
go/token (current package)
position.go#L21: Filename string // filename, if any
position.go#L40: s := pos.Filename
position.go#L337: pos.Filename, pos.Line, pos.Column = f.unpack(offset, adjusted)
go/build
read.go#L35: Filename: name,
go/printer
printer.go#L208: if pos.IsValid() && (p.out.Line != pos.Line || p.out.Filename != pos.Filename) {
printer.go#L210: p.output = append(p.output, fmt.Sprintf("//line %s:%d\n", pos.Filename, pos.Line)...)
printer.go#L213: p.out.Filename = pos.Filename
printer.go#L359: if pos.IsValid() && pos.Filename != p.last.Filename {
go/scanner
errors.go#L26: if e.Pos.Filename != "" || e.Pos.IsValid() {
errors.go#L57: if e.Filename != f.Filename {
errors.go#L58: return e.Filename < f.Filename
errors.go#L83: if e.Pos.Filename != last.Filename || e.Pos.Line != last.Line {
scanner.go#L274: filename = s.file.Position(s.file.Pos(offs)).Filename
golang.org/x/pkgsite/internal/godoc
godoc.go#L63: filename := p.Fset.Position(f.Package).Filename
render.go#L126: return sourceInfo.LineURL(path.Join(innerPath, p.Filename), p.Line)
 |
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. |