guess

package
v0.0.0-...-82c290f Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2018 License: BSD-2-Clause, BSD-3-Clause Imports: 5 Imported by: 0

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.

Jump to

Keyboard shortcuts

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