Documentation ¶
Index ¶
- func Read()
- func Set[T Configurable](take *T, envKey, flagKey string, def T)
- func SetEnv[T Configurable](take *T, envKey string, def T)
- func SetEnvKV[K Configurable, V Configurable](take *KeyValue[K, V], envKey string, def KeyValue[K, V])
- func SetFlag[T Configurable](take *T, flagKey string, def T)
- func SetFlagKV[K Configurable, V Configurable](take *KeyValue[K, V], flagKey string, def KeyValue[K, V])
- func SetKV[K Configurable, V Configurable](take *KeyValue[K, V], envKey, flagKey string, def KeyValue[K, V])
- type Configurable
- type KeyValue
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Set ¶
func Set[T Configurable](take *T, envKey, flagKey string, def T)
func SetEnv ¶
func SetEnv[T Configurable](take *T, envKey string, def T)
func SetEnvKV ¶ added in v0.2.0
func SetEnvKV[K Configurable, V Configurable](take *KeyValue[K, V], envKey string, def KeyValue[K, V])
func SetFlag ¶
func SetFlag[T Configurable](take *T, flagKey string, def T)
func SetFlagKV ¶ added in v0.2.0
func SetFlagKV[K Configurable, V Configurable](take *KeyValue[K, V], flagKey string, def KeyValue[K, V])
func SetKV ¶ added in v0.2.0
func SetKV[K Configurable, V Configurable](take *KeyValue[K, V], envKey, flagKey string, def KeyValue[K, V])
Types ¶
type Configurable ¶
type KeyValue ¶ added in v0.2.0
type KeyValue[K Configurable, V Configurable] struct { Key K Value V }
Click to show internal directories.
Click to hide internal directories.