Skip to content

Instantly share code, notes, and snippets.

@bgadrian
Created September 14, 2019 16:17
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 bgadrian/7752af4a0fa5b8a682c2df6d0c590a22 to your computer and use it in GitHub Desktop.
Save bgadrian/7752af4a0fa5b8a682c2df6d0c590a22 to your computer and use it in GitHub Desktop.
bytes := []bytes //string here, can be reused or kept on stack
stringVal := *(*string)(unsafe.Pointer(&bytes))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment