Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ConfMap sync.Map
Functions ¶
func GetEnvironment ¶
GetEnvironment get the system environment by name. GetEnvironment 获取系统环境变量 parameters envName return envValue
func GetLocalIPAddr ¶
func GetLocalIPAddr() string
GetLocalIPAddr get the local IP address GetLocalIPAddr 获取本地IP return IP address
Types ¶
type Config ¶
type Config struct { Env string `yaml:"env" json:"env"` Version string `yaml:"version" json:"version"` Redis []RedisStru `yaml:"redis" json:"redis"` MySQL []MySQLStru `yaml:"mysql" json:"mysql"` }
func LoadConfig ¶
func LoadConfig() *Config
Click to show internal directories.
Click to hide internal directories.