Last active
June 19, 2018 12:56
-
-
Save prostoiChelovek/e226b36339e7e1813c6971ff2f3870a2 to your computer and use it in GitHub Desktop.
io.ReadCloser to string
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
buf := new(bytes.Buffer) | |
buf.ReadFrom(yourReader) | |
s := buf.String() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment