Documentation
¶
Overview ¶
Package guess was copied out of the source for golang.org/x/tools/cmd/guru
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ImportPath ¶
func ImportPath(filename string, buildContext *build.Context) (srcdir, importPath string, err error)
ImportPath finds the package containing filename, and returns its source directory (an element of $GOPATH) and its import path relative to it.
TODO(adonovan): what about _test.go files that are not part of the package?
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.