repair package names and other fixed
This commit is contained in:
@@ -97,16 +97,14 @@ func Get() *Config {
|
||||
// GetDSN returns the database connection string
|
||||
func (c *DatabaseConfig) GetDSN() string {
|
||||
return fmt.Sprintf(
|
||||
"host=%s port=%d user=%s password=%s dbname=%s sslmode=%s",
|
||||
c.Host,
|
||||
c.Port,
|
||||
"%s:%s@tcp(%s:%d)/%s?charset=utf8mb4&parseTime=True&loc=Local",
|
||||
c.User,
|
||||
c.Password,
|
||||
c.Host,
|
||||
c.Port,
|
||||
c.Name,
|
||||
c.SSLMode,
|
||||
)
|
||||
}
|
||||
|
||||
func load() *Config {
|
||||
|
||||
cfg := &Config{}
|
||||
|
||||
Reference in New Issue
Block a user