go/token.FileSet.PositionFor (method)
5 uses
go/token (current package)
position.go#L512: func (s *FileSet) PositionFor(p Pos, adjusted bool) (pos Position) {
position.go#L525: return s.PositionFor(p, true)
go/ast
import.go#L56: return fset.PositionFor(pos, false).Line
go/printer
printer.go#L195: return p.fset.PositionFor(pos, false /* absolute position */)
printer.go#L201: p.cachedLine = p.fset.PositionFor(pos, false /* absolute position */).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. |