moto/config/config.go

18 lines
374 B
Go
Raw Normal View History

2024-12-12 11:45:03 +08:00
package config
type Database struct {
Address string `json:"address" yaml:"address"`
Username string `json:"username" yaml:"username"`
Password string `json:"password" yaml:"password"`
Database string `json:"database" yaml:"database"`
}
type Config struct {
Database Database `json:"database" yaml:"database"`
}
func New() *Config {
cfg := &Config{}
return cfg
}