Skip to content

Instantly share code, notes, and snippets.

@Gabri3l
Created April 15, 2020 01:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Gabri3l/c86814c1d61a25fb62379b7283beba85 to your computer and use it in GitHub Desktop.
Save Gabri3l/c86814c1d61a25fb62379b7283beba85 to your computer and use it in GitHub Desktop.
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