imports

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2016 License: BSD-3-Clause, MIT, BSD-3-Clause Imports: 20 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Debug = false

Debug controls verbose logging.

View Source
var LocalPrefix string

If set, LocalPrefix instructs Process to sort import paths with the given prefix into another group after 3rd-party packages.

Functions

func GoPath

func GoPath() map[string]*Pkg

GoPath returns all importable packages (abs dir path => *Pkg).

Types

type Pkg

type Pkg struct {
	Dir             string // absolute file path to Pkg directory ("/usr/lib/go/src/net/http")
	ImportPath      string // full Pkg import path ("net/http", "foo/bar/vendor/a/b")
	ImportPathShort string // vendorless import path ("net/http", "a/b")
}

Pkg represents exported type of pkg.

Jump to

Keyboard shortcuts

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