Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ConfigFormatNotSupportedError = errors.New("unknown setting format") ConfigContentError = errors.New("yaml Error-Check your yaml content") )
View Source
var ApplicationConfig = new(ApplicationSettings)
View Source
var WorkspaceConfig = new(WorkspaceSettings)
View Source
var YamlConfig = &Total{ Settings: Settings{ Application: ApplicationConfig, Workspace: WorkspaceConfig, }, }
Functions ¶
func CheckInSlice ¶
CheckInSlice check if element is in slice.
func CheckViperErr ¶
CheckViperErr give explanation of error and a bool of whether error exists.
func LoadConfigFromYaml ¶
LoadConfigFromYaml Returns raw viper object that could be read directly.
func ReleaseYaml ¶
Releaseyaml if no yaml is available; Deprecated in v0.1.3+.
Types ¶
type ApplicationSettings ¶
type Settings ¶
type Settings struct { Application *ApplicationSettings `yaml:"application"` Workspace *WorkspaceSettings `yaml:"workspace"` }
type WorkspaceSettings ¶
Click to show internal directories.
Click to hide internal directories.