conf

package
v0.3.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 25, 2023 License: MIT Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Read

func Read()

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 Configurable interface {
	parse.Parseable
}

type KeyValue added in v0.2.0

type KeyValue[K Configurable, V Configurable] struct {
	Key   K
	Value V
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL