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 ¶
Check if element is in slice.
func CheckViperErr ¶
This give explaination of error and a bool of whether error exists.
func LoadConfigFromYaml ¶
Returns raw viper stu-could read directly without sp.to struct
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.