cfgur

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const TagName = "cfgur"

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigProvider

type ConfigProvider interface {
	Init() error
	GetString(key string) string
	GetInt(key string) int64
	GetBool(key string) bool
	GetStringE(key string) (string, bool)
	GetIntE(key string) (int64, bool)
	GetBoolE(key string) (bool, bool)
}

type ConfigUnmarshaler

type ConfigUnmarshaler interface {
	ConfigProvider
	Unmarshal(val interface{}) error
}

func NewDotenvMarshaller

func NewDotenvMarshaller(filenames ...string) ConfigUnmarshaler

func NewEnvMarshaller

func NewEnvMarshaller() ConfigUnmarshaler

func NewIniConfig

func NewIniConfig(filename string) ConfigUnmarshaler

NewIniConfig creates a new instance of INI configuration manager

func NewJsonMarshaller

func NewJsonMarshaller(filepath string) ConfigUnmarshaler

Jump to

Keyboard shortcuts

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