config

package
v0.0.0-...-6f9dc6e Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadConfigFromEnv

func LoadConfigFromEnv(cfg interface{}) error

LoadConfigFromEnv 从 env 中添加配置文件

func LoadConfigFromToml

func LoadConfigFromToml(filePath string, cfg interface{}) error

LoadConfigFromToml 从 toml 中添加配置文件

func LoadConfigFromYml

func LoadConfigFromYml(filePath string, cfg interface{}) error

LoadConfigFromYml 从 yaml 中添加配置文件

Types

type FileType

type FileType uint8
const (
	TomlFileType FileType = iota
	YamlFIleType
)

Jump to

Keyboard shortcuts

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