config

package
v1.4.10 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2023 License: Apache-2.0 Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigType added in v1.4.8

type ConfigType string
const (
	ConfigTypeJson       ConfigType = "json"
	ConfigTypeToml       ConfigType = "toml"
	ConfigTypeYaml       ConfigType = "yaml"
	ConfigTypeYml        ConfigType = "yml"
	ConfigTypeProperties ConfigType = "properties"
	ConfigTypeProps      ConfigType = "props"
	ConfigTypeProp       ConfigType = "prop"
	ConfigTypeHcl        ConfigType = "hcl"
	ConfigTypeDotenv     ConfigType = "dotenv"
	ConfigTypeEnv        ConfigType = "env"
	ConfigTypeIni        ConfigType = "ini"
)

type Configurator

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

func NewWithFilePath added in v1.4.8

func NewWithFilePath(path string) *Configurator

func NewWithReader added in v1.4.8

func NewWithReader(reader io.Reader) *Configurator

func (*Configurator) Kernel

func (c *Configurator) Kernel() *viper.Viper

func (*Configurator) Load added in v1.4.8

func (c *Configurator) Load(config interface{}) error

func (*Configurator) SetConfigType

func (c *Configurator) SetConfigType(configType ConfigType) *Configurator

func (*Configurator) SetTagName

func (c *Configurator) SetTagName(tagName string) *Configurator

Jump to

Keyboard shortcuts

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