mirror of
https://github.com/zhashkevych/go-sqlxmock.git
synced 2025-02-16 18:34:27 +02:00
12 lines
226 B
Go
12 lines
226 B
Go
|
package sqlmock
|
||
|
|
||
|
import "strings"
|
||
|
|
||
|
// strip out new lines and trim spaces
|
||
|
func stripQuery(q string) (s string) {
|
||
|
s = strings.Replace(q, "\n", " ", -1)
|
||
|
s = strings.Replace(s, "\r", "", -1)
|
||
|
s = strings.TrimSpace(s)
|
||
|
return
|
||
|
}
|