Created
April 13, 2017 02:01
-
-
Save gowinder/a95025b0f0c211575a272d9a42bb5a65 to your computer and use it in GitHub Desktop.
golang string convert to byte slice
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
s := “abc” | |
b := []byte(s) | |
s2 := string(b) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment