mirror of
https://github.com/zeromicro/go-zero.git
synced 2026-05-11 00:40:00 +08:00
fix golint issues in core/stores (#527)
This commit is contained in:
@@ -7,6 +7,7 @@ const (
|
||||
duplicateEntryCode uint16 = 1062
|
||||
)
|
||||
|
||||
// NewMysql returns a mysql connection.
|
||||
func NewMysql(datasource string, opts ...SqlOption) SqlConn {
|
||||
opts = append(opts, withMysqlAcceptable())
|
||||
return NewSqlConn(mysqlDriverName, datasource, opts...)
|
||||
|
||||
Reference in New Issue
Block a user