config

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Toml = "toml"
	Yaml = "yaml"
	Json = "json"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CfgBasic

type CfgBasic struct {
	Remote   bool
	CfgDir   string
	FileType string
	Env      string
}

type ConfigMate

type ConfigMate interface {
	PrimitiveDecode(vals ...ConfigureMatcher) error
}

func NewConfig

func NewConfig(cbs ...CfgBasic) ConfigMate

type ConfigWithToml

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

func (*ConfigWithToml) Decode

func (ct *ConfigWithToml) Decode() error

func (*ConfigWithToml) PrimitiveDecode

func (ct *ConfigWithToml) PrimitiveDecode(vals ...ConfigureMatcher) error

type Configuration

type Configuration interface {
	Decode() error
}

type ConfigureMatcher

type ConfigureMatcher interface {
	Name() string
}

Jump to

Keyboard shortcuts

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