You've already forked go-sqlxmock
mirror of
https://github.com/zhashkevych/go-sqlxmock.git
synced 2025-07-06 22:05:45 +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
|
||
|
}
|