Versions in this module Expand all Collapse all v0 v0.0.2 Sep 7, 2023 Changes in this version + type AppContext interface + Get func(id string) (interface{}, bool) + GetEnvName func() string + GetName func() string + GetPrefix func() string + Load func() error + Logger func(prefix string) Logger + MustGet func(id string) interface{} + OutEnv func() + Stop func() error + func NewAppContext(opts ...Option) AppContext + type AppLogger interface + GetLogger func(prefix string) Logger + func GlobalLogger() AppLogger + type Component interface + ID func() string + InitFlags func() + Run func(AppContext) error + Stop func() error + type Logger interface + Debug func(args ...interface{}) + Debugf func(format string, args ...interface{}) + Error func(err error, args ...interface{}) + Errorf func(err error, format string, args ...interface{}) + Fatal func(err error, args ...interface{}) + Fatalf func(err error, format string, args ...interface{}) + GetLevel func() string + Info func(args ...interface{}) + Infof func(format string, args ...interface{}) + Print func(args ...interface{}) + Printf func(format string, args ...interface{}) + Warn func(args ...interface{}) + Warnf func(format string, args ...interface{}) + type Option func(*appContext) + func WithComponent(c Component) Option + func WithName(name string) Option + func WithPrefix(prefix string) Option