...
Code Block | ||
---|---|---|
| ||
func ExampleGstr_AddSlashes() { 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 ExampleGstr_AddSlashes() { 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 } |
...