godef

package
v2.0.0+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 17, 2018 License: MIT, BSD-3-Clause Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNoIdentifierFound = errors.New("no identifier found")

Functions

This section is empty.

Types

type Result

type Result struct {
	// Start and end positions of the definition (only if not an import statement).
	Start, End token.Pos

	// Package in question, only present if an import statement OR package selector
	// ('http' in 'http.Router').
	Package *build.Package
}

func Godef

func Godef(fset *token.FileSet, offset int, filename string, src []byte) (*Result, error)

Directories

Path Synopsis
go
parser
A parser for Go source files.
A parser for Go source files.
types
Types infers source locations and types from Go expressions.
Types infers source locations and types from Go expressions.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL