Improve fmt

This commit is contained in:
Lunny Xiao 2020-02-24 13:54:12 +08:00
parent fb440d015a
commit 1837d652a0
No known key found for this signature in database
GPG Key ID: C3B7C91B632F738A
1 changed files with 2 additions and 2 deletions

View File

@ -266,11 +266,11 @@ type sqlNode struct {
} }
func genSQLKey(sql string, args interface{}) string { func genSQLKey(sql string, args interface{}) string {
return fmt.Sprintf("%v-%v", sql, args) return fmt.Sprintf("%s-%v", sql, args)
} }
func genID(prefix string, id string) string { func genID(prefix string, id string) string {
return fmt.Sprintf("%v-%v", prefix, id) return fmt.Sprintf("%s-%s", prefix, id)
} }
func newIDNode(tbName string, id string) *idNode { func newIDNode(tbName string, id string) *idNode {