Created
April 15, 2020 01:02
-
-
Save Gabri3l/c86814c1d61a25fb62379b7283beba85 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 BytesArrayToString(data []bytes) string { | |
bodyBytes, perr := ioutil.ReadAll(data) | |
if perr != nil { | |
fmt.Print("UH OH") | |
} | |
bodyString := string(bodyBytes) | |
return bodyString | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment