Versions in this module Expand all Collapse all v1 v1.0.1 Mar 13, 2021 Changes in this version + const DefaultAppDescription + var App = &appConfig + var DefaultAppColor = !color.NoColor + var DefaultAppName = "rai" + var DefaultAppSecret string + var IsDebug bool + var IsVerbose bool + func AfterInit(f func()) + func BeforeInit(f func()) + func Debug() + func Init(opts ...Option) + func IsValidRemotePrefix(s string) bool + func OnInit(f func()) + func Register(mod ConfigInterface) + func SetAppSecret(s string) + type ConfigInterface interface + ConfigName func() string + Debug func() + Read func() + SetDefaults func() + String func() string + Wait func() + type Option func(*Options) + func AppName(s string) Option + func AppSecret(s string) Option + func ColorMode(b bool) Option + func ConfigEnvironName(s string) Option + func ConfigFileAbsolutePath(s string) Option + func ConfigFileBaseName(s string) Option + func ConfigFileType(s string) Option + func ConfigRemotePath(s string) Option + func ConfigSearchPaths(s []string) Option + func ConfigString(s string) Option + func DebugMode(b bool) Option + func VerboseMode(b bool) Option + type Options struct + AppName string + AppSecret string + ConfigEnvironName string + ConfigFileAbsolutePath string + ConfigFileBaseName string + ConfigFileType string + ConfigRemotePath string + ConfigSearchPaths []string + ConfigString *string + IsDebug bool + IsVerbose bool + func NewOptions() *Options + type VersionInfo struct + BuildDate string + GitBranch string + GitCommit string + GitState string + GitSummary string + Version string