RestApiv2/internal/bd/config.go

14 lines
181 B
Go

package bd
import "os"
type ConfigBD struct {
BaseUrlBd string `yaml:"baseurlbd"`
}
func NewConfig() *ConfigBD {
return &ConfigBD{
BaseUrlBd: os.Getenv("DATABASE_URL"),
}
}