Versions in this module Expand all Collapse all v1 v1.0.0 Mar 19, 2022 Changes in this version + const EncryptAESGCM + const EncryptDefault + const EncryptNone + func Decrypt(password string, val string) (string, error) + func Encrypt(alg, password, value string) (string, error) + type Arguments struct + Prefix string + func (a *Arguments) Get(key string) (string, bool) + func (e *Arguments) GetDefault(key, defVal string) string + type Combined struct + Sources []PropertyGetter + func (c *Combined) Get(key string) (string, bool) + func (c *Combined) GetDefault(key string, defVal string) string + type Configuration struct + DateFormat string + Props PropertyGetter + StrictBool bool + func NewConfiguration(fileSys fs.StatFS, prefix string, profiles ...string) (*Configuration, error) + func (c *Configuration) Decrypt(password string, key string, defVal string) (string, error) + func (c *Configuration) Get(key string) (string, bool) + func (c *Configuration) GetDefault(key, defVal string) string + func (c *Configuration) ParseBool(key string, defVal bool) (bool, error) + func (c *Configuration) ParseByteSize(key string, defVal uint64) (uint64, error) + func (c *Configuration) ParseDate(key string, defVal time.Time) (time.Time, error) + func (c *Configuration) ParseDuration(key string, defVal time.Duration) (time.Duration, error) + func (c *Configuration) ParseFloat(key string, defVal float64) (float64, error) + func (c *Configuration) ParseInt(key string, defVal int) (int, error) + func (c *Configuration) ParseSize(key string, defVal float64) (float64, error) + type Environment struct + Normalize bool + func (e *Environment) Get(key string) (string, bool) + func (e *Environment) GetDefault(key, defVal string) string + type Expander struct + Limit int + Prefix string + Source PropertyGetter + Suffix string + func NewExpander(source PropertyGetter) *Expander + func (e *Expander) Get(key string) (string, bool) + func (e *Expander) GetDefault(key, defVal string) string + type Properties struct + func NewProperties() *Properties + func Read(r io.Reader) (*Properties, error) + func (p *Properties) Clear() + func (p *Properties) Get(key string) (string, bool) + func (p *Properties) GetDefault(key, defVal string) string + func (p *Properties) Load(r io.Reader) error + func (p *Properties) Names() []string + func (p *Properties) Set(key, val string) + func (p *Properties) Write(w io.Writer) error + type PropertyGetter interface + Get func(key string) (string, bool) + GetDefault func(key, defVal string) string