Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadConfig ¶
func LoadConfig(configPath string)
Types ¶
type Config ¶
type Config struct {
Database struct {
Path string `yaml:"path"`
} `yaml:"database"`
Admin struct {
DefaultUsername string `yaml:"default_username"`
DefaultPassword string `yaml:"default_password"`
} `yaml:"admin"`
Server struct {
Port int `yaml:"port"`
} `yaml:"server"`
Session struct {
SecretKey string `yaml:"secret_key"`
} `yaml:"session"`
}
var AppConfig Config
Click to show internal directories.
Click to hide internal directories.