github.com/go-git/gcfg/token.File.base (field)
14 uses
github.com/go-git/gcfg/token (current package)
position.go#L96: base int // Pos value range for this file is [base...base+size]
position.go#L111: return f.base
position.go#L217: return Pos(f.base + offset)
position.go#L225: if int(p) < f.base || int(p) > f.base+f.size {
position.go#L228: return int(p) - f.base
position.go#L263: offset := int(p) - f.base
position.go#L274: if int(p) < f.base || int(p) > f.base+f.size {
position.go#L366: return sort.Search(len(a), func(i int) bool { return a[i].base > x }) - 1
position.go#L371: if f := s.last; f != nil && f.base <= int(p) && int(p) <= f.base+f.size {
position.go#L378: if int(p) <= f.base+f.size {
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. |