Skip to content

Instantly share code, notes, and snippets.

@adenosinew
Last active August 25, 2019 03:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save adenosinew/375f6c630759a53e549f8cc7708510f2 to your computer and use it in GitHub Desktop.
Save adenosinew/375f6c630759a53e549f8cc7708510f2 to your computer and use it in GitHub Desktop.
[Go string] Work with strings #go
// The %q (quoted) verb will escape any non-printable byte sequences in a string so the output is unambiguous.
fmt.Printf("%q\n", sample)
ioreader := strings.NewReader(s)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment