parser

package
v0.8.2-alpha Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2023 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigLoader

type ConfigLoader interface {
	Load(config any) error
}

func New

func New(opts ...Option) ConfigLoader

type ConfigValidator

type ConfigValidator func(configPath string) error

type Option

type Option func(*opts)

func WithConfigFile

func WithConfigFile(file string) Option

func WithConfigLookupDir

func WithConfigLookupDir(file string) Option

func WithConfigValidator

func WithConfigValidator(validator ConfigValidator) Option

func WithDecodeHookFunc

func WithDecodeHookFunc(hook mapstructure.DecodeHookFunc) Option

func WithDefaultConfigFilename

func WithDefaultConfigFilename(name string) Option

func WithEnvPrefix

func WithEnvPrefix(prefix string) Option

Jump to

Keyboard shortcuts

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