conf

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2021 License: Apache-2.0 Imports: 10 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get(key string) val.Value

func Load

func Load(files ...string) error

Load from files and env, env > files[n-1] > ... > files[0]

Types

type Conf

type Conf struct {
	*Config
	// contains filtered or unexported fields
}

func New

func New(opts ...ConfigFunc) *Conf

func (*Conf) Get

func (conf *Conf) Get(key string) val.Value

func (*Conf) Load

func (conf *Conf) Load(paths ...string) error

type Config

type Config struct {
	// contains filtered or unexported fields
}

type ConfigFunc

type ConfigFunc = func(config *Config)

func WithDebug

func WithDebug() ConfigFunc

func WithOverwrite

func WithOverwrite() ConfigFunc

func WithSkipError

func WithSkipError() ConfigFunc

Jump to

Keyboard shortcuts

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