...
https://godoc.org/github.com/gogf/gf/text/gstr
AddSlashes
- 格式:
- 说明:
示例:
Code Block language go str:=`aaaa'"\dddd` fmt.Println(gstr.AddSlashes(str))
...
https://godoc.org/github.com/gogf/gf/text/gstr
示例:
Code Block | ||
---|---|---|
| ||
str:=`aaaa'"\dddd`
fmt.Println(gstr.AddSlashes(str)) |