Documentation ¶
Index ¶
- func DepErrors(pkgpath string, flags ...string) bool
- func DirExists(filename string) bool
- func FileExists(filename string) bool
- func GetModDir(pkgpath string, flags ...string) string
- func GetPkgDir(pkgpath string, flags ...string) string
- func Getenv(key string, aliases ...string) string
- func RunCmd(cmd *exec.Cmd) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DepErrors ¶ added in v1.27.0
DepErrors checks there are any errors resolving dependencies for `pkgpath`. It passes the `go list` command the flags specified by `flags`.
func FileExists ¶ added in v1.25.0
FileExists tests whether the file at `filename` exists and is not a directory.
func GetModDir ¶ added in v1.25.0
GetModDir gets the absolute directory of the module containing the package with path `pkgpath`. It passes the `go list` the flags specified by `flags`.
func GetPkgDir ¶ added in v1.25.0
GetPkgDir gets the absolute directory containing the package with path `pkgpath`. It passes the `go list` command the flags specified by `flags`.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.