format code (#884)

This commit is contained in:
Kevin Wan
2021-08-09 18:11:08 +08:00
committed by GitHub
parent a74aaf1823
commit 02adcccbf4
4 changed files with 13 additions and 15 deletions

View File

@@ -122,7 +122,7 @@ func RawFieldNames(in interface{}, postgresSql ...bool) []string {
}
func PostgreSqlJoin(elems []string) string {
var b = new(strings.Builder)
b := new(strings.Builder)
for index, e := range elems {
b.WriteString(fmt.Sprintf("%s = $%d, ", e, index+1))
}