Versions in this module Expand all Collapse all v0 v0.1.0 Nov 15, 2020 Changes in this version + const AppNameDefault + const ConfigPathDefault + func ConsoleFormater(out io.Writer, noColor bool) io.Writer + func FileExist(path string) bool + func LogSetLevel(lvl GoutilLogLevel) + func NewRotateFileWriter(path, prefix string, rotation, expiry time.Duration) io.Writer + type GoutilArgs struct + GoutilConfigPath string + GoutilConfigSub []string + Help bool + Result ParseResult + func NewArgs(visible bool) *GoutilArgs + type GoutilConfig struct + func NewConfig(file string, subs ...string) *GoutilConfig + func (s *GoutilConfig) GetAll() map[string]interface{} + func (s *GoutilConfig) OnConfigReload(f func(fsnotify.Event)) + func (s *GoutilConfig) SetConfig(file string) + func (s *GoutilConfig) SetSubConfigs(subs ...string) + type GoutilCore struct + Args *GoutilArgs + Config *GoutilConfig + Log *GoutilLog + func NewCoreDefault() *GoutilCore + type GoutilLog struct + func NewLogWithWriters(writers ...io.Writer) *GoutilLog + func (s GoutilLog) Debug(v ...interface{}) + func (s GoutilLog) Error(v ...interface{}) + func (s GoutilLog) Fatal(v ...interface{}) + func (s GoutilLog) Info(v ...interface{}) + func (s GoutilLog) Warn(v ...interface{}) + type GoutilLogLevel int8 + const DebugLevel + const Disabled + const ErrorLevel + const FatalLevel + const InfoLevel + const LogTimeFormat + const WarnLevel + type ParseResult int + const ParseFailed + const ParseNoArg + const ParseSuccess + type SubConfig struct