Last active
August 25, 2019 03:13
-
-
Save adenosinew/375f6c630759a53e549f8cc7708510f2 to your computer and use it in GitHub Desktop.
[Go string] Work with strings #go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// The %q (quoted) verb will escape any non-printable byte sequences in a string so the output is unambiguous. | |
fmt.Printf("%q\n", sample) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ioreader := strings.NewReader(s) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment