Files
gocqlx/qb/qb.go

15 lines
226 B
Go
Raw Normal View History

2017-07-26 13:57:10 +02:00
package qb
import (
"strings"
)
// placeholders returns a string with count ? placeholders joined with commas.
func placeholders(count int) string {
if count < 1 {
return ""
}
return strings.Repeat(",?", count)[1:]
}