Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagego
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
}

...