config

package
v0.0.0-...-d07672d Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2023 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadConfigFromFile

func LoadConfigFromFile(fn string, configType ConfigType, value interface{}, opts ...viper.DecoderConfigOption) error

LoadConfigFromFile 从文件中读取配置

Types

type ConfigType

type ConfigType string
const (
	ConstConfigTypeYaml ConfigType = "yaml"
	ConstConfigTypeJson ConfigType = "json"
	ConstConfigTypeToml ConfigType = "toml"
)

func (ConfigType) String

func (t ConfigType) String() string

Jump to

Keyboard shortcuts

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