Last active
August 2, 2019 12:16
-
-
Save maruware/bf2638196d4187a49b88cc0e831ae4b7 to your computer and use it in GitHub Desktop.
[Go] Base64 to io.Reader
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
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