imports

package
v1.70.0 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: Apache-2.0 Imports: 5 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(pkgDir, goos, goarch string) (GoFiles, error)

AllFiles returns a map that contains all of the non-standard library Go files that are imported by (and thus are required to build) the package at the specified file path (including the package itself) using the specified GOOS and GOARCH. If GOOS or GOARCH is empty, the default value for the current environment is used. The keys in the returned map are the package or module names and the values are a slice of the paths 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