Versions in this module Expand all Collapse all v1 v1.1.0 Mar 1, 2024 Changes in this version type Config + func (c *Config) Watch(ctx context.Context, key string, callback func(event source.Event)) error v1.0.1 Oct 24, 2023 v1.0.0 Oct 24, 2023 Changes in this version + func RegistrySource(name string, f NewSource) + type Config struct + AppName string + Debug bool + Env Env + Version string + func Default() *Config + func NewConfig(appName string, opt ...Option) (*Config, error) + func (c *Config) Bool(key string) bool + func (c *Config) Has(key string) (bool, error) + func (c *Config) Scan(key string, value interface{}) error + func (c *Config) String(key string) string + type Env string + const DEV + const PRE + const PROD + const TEST + type NewSource func(cfg *Config, serialization file.Serialization) (source.Source, error) + type Option func(*Options) + func WithConfigFile(file string) Option + func WithSerialization(serialization file.Serialization) Option + func WithSource(source source.Source) Option + type Options struct