Documentation ¶
Index ¶
Constants ¶
View Source
const SETTINGSFILE = "settings.json"
SETTINGSFILE is the name of the file where the settings are stored.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { // Name holds the name of the environment. Name string `json:"name"` // CompileSteps hold the commands to be run to compile this env main project. CompileSteps []string `json:"compilesteps"` // GoVersion holds the version of go this env should use. GoVersion string `json:"goversion"` // GlobalBin indicates if the $GOPATH/bin of this env will be added to PATH. GlobalBin bool `json:"globalbin"` // GoPath GoPath string `json:"gopath"` // contains filtered or unexported fields }
Config holds the information about a given environment.
type Settings ¶
type Settings struct { // Goroot is the path to a working goroot, it is // required by the go compiler. // TODO (perrito666) make this updateable by each new version. Goroot string `json:"goroot"` // Default is the default environment to set, this will behave // a bit differently since its for general use. Default string `json:"default"` // contains filtered or unexported fields }
Settings holds general settings for goworkon.
func LoadSettings ¶
LoadSettings will load Settings files in the given location
Click to show internal directories.
Click to hide internal directories.