Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ModPackageFileError = eris.New("could not find mod package file") NonGoModPackageError = eris.New("path could not be found, as this function must be run from within a" + "go.mod package") EmptyFileError = eris.New("empty file supplied, must be") UnableToListPackagesError = eris.New("unable to list dependencies for current go.mod packages") )
Functions ¶
func GetCurrentModPackageFile ¶
Returns the current go mod package Ex: /path/to/solo-kit/go.mod
Will return /dev/null on unix if not in a go.mod package
func GetCurrentModPackageName ¶
Returns the current go mod package name from the go.mod file. Use the function below to get the filename Ex: github.com/solo-io/solo-kit
func GetCurrentPackageList ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.