Documentation ¶
Index ¶
- Constants
- func AppLogger() *log.Entry
- func EnsureGoPath() error
- func GetModuleRequirements(dir string) (map[string]map[string]string, error)
- func GoGet(path string, version string, goModules bool) error
- func GoPath() string
- func GoPathBin() string
- func GoPathSrc() string
- func SetLevel(s string) error
Constants ¶
View Source
const (
// AppName is tge application name for logging.
AppName = "codegen"
)
Variables ¶
This section is empty.
Functions ¶
func EnsureGoPath ¶
func EnsureGoPath() error
EnsureGoPath ensures the GOPATH environment variable is set and points to a valid directory.
func GetModuleRequirements ¶
GetModuleRequirements returns the requirements for the GO module rooted in dir It returns a map[<module name>]map[<requirement name>]<requirement version>
func GoPath ¶
func GoPath() string
GoPath returns the first element of the GOPATH. The empty string is returned if GOPATH is not set.
func GoPathBin ¶
func GoPathBin() string
GoPathBin returns the bin directory of the first GOPATH element.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.