Created
April 18, 2018 22:57
-
-
Save farhany/648820618314d2db1012f718e028371f to your computer and use it in GitHub Desktop.
Convert []byte to string in Golang
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
func BytesToString(data []byte) string { | |
return string(data[:]) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment