Documentation ¶
Index ¶
- func LoadManifest(manifestFile string) (*envManifest, error)
- func LookupInstalledVersion(version string) bool
- func NewEnvManifest(env *Environment, options ...func(em *envManifest)) (*envManifest, error)
- func NewPackageManifest(env *Environment, options ...funcOpts) (*packageManifest, error)
- type Environment
- type Package
- type T
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadManifest ¶
load an envManifest from a manifest file
func LookupInstalledVersion ¶
lookup for an specific installed go version
func NewEnvManifest ¶
func NewEnvManifest(env *Environment, options ...func(em *envManifest)) (*envManifest, error)
creates a new envManifest
func NewPackageManifest ¶
func NewPackageManifest( env *Environment, options ...funcOpts) (*packageManifest, error)
creates a new packageManifest
Types ¶
type Environment ¶
type Environment struct { Goroot string Gotooldir string Gopath string PS1 string VenGO_PATH string }
func NewEnvironment ¶
func NewEnvironment(name, prompt string) *Environment
Create a new Environment struct and return it addrees back
func (*Environment) Exists ¶
func (e *Environment) Exists() bool
checks if a environment already exists
func (*Environment) Install ¶
func (e *Environment) Install(ver string) error
install the given version into the environment creating a Symlink to it
func (*Environment) Manifest ¶
func (e *Environment) Manifest() (*envManifest, error)
generates an environment manifest from a configured environment
Click to show internal directories.
Click to hide internal directories.