type github.com/go-git/gcfg/token.File
30 uses
github.com/go-git/gcfg/token (current package)
position.go#L93: type File struct {
position.go#L105: func (f *File) Name() string {
position.go#L110: func (f *File) Base() int {
position.go#L115: func (f *File) Size() int {
position.go#L120: func (f *File) LineCount() int {
position.go#L131: func (f *File) AddLine(offset int) {
position.go#L147: func (f *File) SetLines(lines []int) bool {
position.go#L164: func (f *File) SetLinesForContent(content []byte) {
position.go#L201: func (f *File) AddLineInfo(offset int, filename string, line int) {
position.go#L213: func (f *File) Pos(offset int) Pos {
position.go#L224: func (f *File) Offset(p Pos) int {
position.go#L234: func (f *File) Line(p Pos) int {
position.go#L244: func (f *File) info(offset int) (filename string, line, column int) {
position.go#L262: func (f *File) position(p Pos) (pos Position) {
position.go#L272: func (f *File) Position(p Pos) (pos Position) {
position.go#L292: files []*File // list of files in the order added to the set
position.go#L293: last *File // cache of last file looked up
position.go#L329: func (s *FileSet) AddFile(filename string, base, size int) *File {
position.go#L336: f := &File{s, filename, base, size, []int{0}, nil}
position.go#L351: func (s *FileSet) Iterate(f func(*File) bool) {
position.go#L353: var file *File
position.go#L365: func searchFiles(a []*File, x int) int {
position.go#L369: func (s *FileSet) file(p Pos) *File {
position.go#L390: func (s *FileSet) File(p Pos) (f *File) {
serialize.go#L30: files := make([]*File, len(ss.Files))
serialize.go#L33: files[i] = &File{s, f.Name, f.Base, f.Size, f.Lines, f.Infos}
github.com/go-git/gcfg
read.go#L52: fset *token.FileSet, file *token.File, src []byte) error {
read.go#L189: func readInto(config interface{}, fset *token.FileSet, file *token.File,
github.com/go-git/gcfg/scanner
scanner.go#L38: file *token.File // source file handle
scanner.go#L112: func (s *Scanner) Init(file *token.File, src []byte, err ErrorHandler, mode Mode) {
 |
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. |