sqlboiler/vendor/gopkg.in/DATA-DOG/go-sqlmock.v1/util.go
2016-08-29 23:24:25 -07:00

13 lines
222 B
Go

package sqlmock
import (
"regexp"
"strings"
)
var re = regexp.MustCompile("\\s+")
// strip out new lines and trim spaces
func stripQuery(q string) (s string) {
return strings.TrimSpace(re.ReplaceAllString(q, " "))
}