config

package
v0.2.16 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2022 License: MulanPSL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	ViperConfig *viper.Viper
}

Config配置结构

func LoadConfig

func LoadConfig() (cfg *Config, err error)

func (*Config) GetFloat64

func (cfg *Config) GetFloat64(service, name string) float64

GetInt根据service及name名获取对应float64值

func (*Config) GetInt

func (cfg *Config) GetInt(service, name string) int

GetInt根据service及name名获取对应int值

func (*Config) GetString

func (cfg *Config) GetString(service, name string) string

GetString 根据service及name名获取对应string值

Jump to

Keyboard shortcuts

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