configuration

package
v0.0.0-...-d386c04 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2024 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var FileExt = "yaml"
View Source
var FileLookingDirs = []string{"$KANTHOR_HOME/", "$HOME/.kanthor/", "./"}
View Source
var FileName = "configs"

Functions

This section is empty.

Types

type Config

type Config interface {
	Validate() error
}

type Provider

type Provider interface {
	Unmarshal(dest interface{}) error
	Sources() []Source
	SetDefault(key string, value interface{})
}

func New

func New() (Provider, error)

func NewFile

func NewFile(dirs []string) (Provider, error)

type Source

type Source struct {
	Looking string
	Found   string
	Used    bool
}

Jump to

Keyboard shortcuts

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