...
Code Block | ||
---|---|---|
| ||
func ExampleAddSlashes() {
var str string
str = `'aa'"bb"cc\r\n\d\t`
rsStr := gstr.AddSlashes(str)
fmt.Println(rsStr)
// Output:
// \'aa\'\"bb\"cc\\r\\n\\d\\t
} |
...
...
Code Block | ||
---|---|---|
| ||
func ExampleAddSlashes() {
var str string
str = `'aa'"bb"cc\r\n\d\t`
rsStr := gstr.AddSlashes(str)
fmt.Println(rsStr)
// Output:
// \'aa\'\"bb\"cc\\r\\n\\d\\t
} |
...