Toggle
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
package config
|
||||
|
||||
type FeatureToggle struct {
|
||||
LoggerEnabled bool `mapstructure:"logger_enabled"`
|
||||
}
|
||||
|
||||
func (f *FeatureToggle) IsLoggerEnabled() bool {
|
||||
return f.LoggerEnabled
|
||||
}
|
||||
Reference in New Issue
Block a user