From 1751c838049c274705f85cffadeeedd4d558a102 Mon Sep 17 00:00:00 2001 From: mahdi Date: Sat, 4 Nov 2023 20:25:44 +0100 Subject: [PATCH] fix new dbconf --- db/db.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db/db.go b/db/db.go index 00a95ca..7db6abc 100644 --- a/db/db.go +++ b/db/db.go @@ -56,7 +56,7 @@ func (dbc *DbConfig) GetSqlConfig(passwdGet ...PasswordDecode) *mysql.Config { 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} }