github.com/go-git/gcfg/token.File.lines (field)
12 uses
github.com/go-git/gcfg/token (current package)
position.go#L100: lines []int
position.go#L122: n := len(f.lines)
position.go#L133: if i := len(f.lines); (i == 0 || f.lines[i-1] < offset) && offset < f.size {
position.go#L134: f.lines = append(f.lines, offset)
position.go#L158: f.lines = lines
position.go#L179: f.lines = lines
position.go#L246: if i := searchInts(f.lines, offset); i >= 0 {
position.go#L247: line, column = i+1, offset-f.lines[i]+1
position.go#L254: if i := searchInts(f.lines, alt.Offset); i >= 0 {
serialize.go#L50: files[i] = serializedFile{f.name, f.base, f.size, f.lines, f.infos}
![]() |
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. |