RestApiv2/internal/bd/config.go

14 lines
181 B
Go
Raw Permalink Normal View History

2022-12-12 20:34:00 +03:00
package bd
2023-03-31 20:08:38 +03:00
import "os"
2022-12-12 20:34:00 +03:00
type ConfigBD struct {
BaseUrlBd string `yaml:"baseurlbd"`
}
func NewConfig() *ConfigBD {
return &ConfigBD{
2023-03-31 20:08:38 +03:00
BaseUrlBd: os.Getenv("DATABASE_URL"),
}
2022-12-12 20:34:00 +03:00
}