fix new dbconf

This commit is contained in:
Mahdi Abu Yasmine 2023-11-04 20:25:44 +01:00
parent 9ff1844932
commit 1751c83804

View File

@ -56,7 +56,7 @@ func (dbc *DbConfig) GetSqlConfig(passwdGet ...PasswordDecode) *mysql.Config {
return nil return nil
} }
func (dbc *DbConfig) NewDbConfig(host string, dbname string, user string, passwd string, port int) *DbConfig { func NewDbConfig(host string, dbname string, user string, passwd string, port int) *DbConfig {
return &DbConfig{host, dbname, user, passwd, port} return &DbConfig{host, dbname, user, passwd, port}
} }