Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( PkgEnv = func(pkg *Package) map[string]string { return map[string]string{ "PACKAGE_ORIGIN": pkg.Origin, "PACKAGE_VERSION": pkg.Version, "PACKAGE_LATEST": pkg.Latest, "PACKAGE_MAINTAINER": pkg.Maintainer, "PACKAGE_TYPE": pkg.Type, "PACKAGE_DIR": CleanPath(viper.GetString("base")) + pkg.Origin, "PACKAGE_ROOT": CleanPath(viper.GetString("base")), } } SetPkgEnv = func(pkg *Package) { for k, v := range PkgEnv(pkg) { os.Setenv(k, v) } } )
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.