Documentation ¶
Index ¶
- type Logger
- type Option
- func WithEnv(prefix string, replacerOldNewPairs ...string) Option
- func WithEnvFile(file string, prefix string, replacerOldNewPairs ...string) Option
- func WithFile(file string) Option
- func WithLogger(log Logger) Option
- func WithOnChange(f func(in fsnotify.Event)) Option
- func WithPaths(name string, typ string, paths ...string) Option
- func WithRemote(typ string, provider, endpoint, path string) Option
- func WithRemoteSecured(typ string, provider, endpoint, path string, secret string) Option
- type Reader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(*options)
func WithEnvFile ¶
func WithFile ¶
WithFile load config in the given file Also load env config from the same directory <fileName>.env
func WithLogger ¶
func WithLogger(log Logger) Option
func WithOnChange ¶
func WithPaths ¶
WithPaths looks for named configs in the given paths Also load environment variables from <name>.env in the given paths
func WithRemote ¶
type Reader ¶
type Reader[T any] struct { // contains filtered or unexported fields }
func MustNewReader ¶
Click to show internal directories.
Click to hide internal directories.