Skip to content

Instantly share code, notes, and snippets.

@maruware
Last active August 2, 2019 12:16
Show Gist options
  • Save maruware/bf2638196d4187a49b88cc0e831ae4b7 to your computer and use it in GitHub Desktop.
Save maruware/bf2638196d4187a49b88cc0e831ae4b7 to your computer and use it in GitHub Desktop.
[Go] Base64 to io.Reader
func DecodeBase64(b64Str string) io.Reader {
r := strings.NewReader(b64Str)
img := base64.NewDecoder(base64.StdEncoding, r)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment