package
Version:
v1.1.13
Opens a new window with list of versions in this module.
Published: Nov 17, 2022
License: MIT, Apache-2.0
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
View Source
const (
DefaultPath = "./configs/config.yml"
)
func LoadConfig(filePath string)
LoadConfig sets the config pointer.
type Config struct {
Server Server `yaml:"server"`
}
GetConfig returns the config pointer.
type Server struct {
Mode string `yaml:"mode"`
HttpAddr string `yaml:"http_addr"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.