imports

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2018 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GoFiles

type GoFiles map[string][]string

GoFiles is a map from package paths to the names of the buildable .go source files (.go files excluding Cgo and test files) in the package.

func AllFiles

func AllFiles(pkgPath string) (GoFiles, error)

AllFiles returns a map that contains all of the non-standard library Go files that are imported (and thus required to build) the specified package (including the package itself). The keys in the returned map are the paths to the packages and the values are a slice of the names of the .go source files in the package (excluding Cgo and test files).

func (GoFiles) NewerThan

func (g GoFiles) NewerThan(fi os.FileInfo) (bool, error)

NewerThan returns true if the modification time of any of the GoFiles is newer than that of the provided file.

Jump to

Keyboard shortcuts

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