Versions in this module Expand all Collapse all v1 v1.3.0 Jan 28, 2022 Changes in this version + func DotEnv(keyValues map[string]string) []byte + func StringifyPath(paths ...interface{}) string + func UnmarshalExtra(extra url.Values, v interface{}) error + type DotEnvDecoder struct + func NewDotEnvDecoder(envVars *EnvVars) *DotEnvDecoder + func (d *DotEnvDecoder) Decode(v interface{}) error + type DotEnvEncoder struct + func NewDotEnvEncoder(envVars *EnvVars) *DotEnvEncoder + func (d *DotEnvEncoder) Encode(v interface{}) ([]byte, error) + func (d *DotEnvEncoder) SecurityEncode(v interface{}) ([]byte, error) + type Duration time.Duration + func (d *Duration) UnmarshalText(text []byte) error + func (d Duration) MarshalText() (text []byte, err error) + type Endpoint struct + Base string + Extra url.Values + Hostname string + Password string + Port uint16 + Scheme string + Username string + func ParseEndpoint(text string) (*Endpoint, error) + func (e *Endpoint) IsTLS() bool + func (e *Endpoint) UnmarshalText(text []byte) error + func (e Endpoint) Host() string + func (e Endpoint) IsZero() bool + func (e Endpoint) MarshalText() (text []byte, err error) + func (e Endpoint) SecurityString() string + func (e Endpoint) String() string + type EnvVar struct + IsCopy bool + IsExpose bool + IsHealthCheck bool + IsUpstream bool + KeyPath string + Mask string + Optional bool + Value string + func (envVar *EnvVar) Key(prefix string) string + type EnvVars struct + Prefix string + Values map[string]*EnvVar + func EnvVarsFromEnviron(prefix string, envs []string) *EnvVars + func NewEnvVars(prefix string) *EnvVars + func (e *EnvVars) Bytes() []byte + func (e *EnvVars) Get(key string) *EnvVar + func (e *EnvVars) Len(key string) int + func (e *EnvVars) MaskBytes() []byte + func (e *EnvVars) Set(envVar *EnvVar) + func (e *EnvVars) SetKeyValue(k string, v string) + type Password string + func (p Password) SecurityString() string + func (p Password) String() string + type PathWalker struct + func NewPathWalker() *PathWalker + func (pw *PathWalker) Enter(i interface{}) + func (pw *PathWalker) Exit() + func (pw *PathWalker) Paths() []interface{} + func (pw *PathWalker) String() string + type SecurityStringer interface + SecurityString func() string