18 lines
374 B
Go
18 lines
374 B
Go
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
|
|
}
|