sqlstring package - github.com/feiin/sqlstring - Go Packages Index ¶ func Escape(val interface{}) string func EscapeInLocation(val interface{}, loc *time.Location) string func Format(query string, args ...interface{}) string func FormatInLocation(query string, loc *time.Location, args ...interface{}) string func SetSingleQuoteEscaper(escaper string) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Escape ¶ func Escape(val interface{}) string Escape escape the val for sql func Format ¶ Format format the sql with args func SetSingleQuoteEscaper ¶ added in v0.2.2 func SetSingleQuoteEscaper(escaper string) SetSingleQuoteEscaper set the singleQuoteEscaper default:\' , e.g. ” 、 \' Types ¶ This section is empty.