Last active
June 5, 2019 17:45
-
-
Save arxdsilva/862f0c61a00ff514854ee4261bb327c4 to your computer and use it in GitHub Desktop.
decode a base 64 string in go
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
package main | |
// https://play.golang.org/p/utIG70ublyv | |
import ( | |
b64 "encoding/base64" | |
"fmt" | |
) | |
func main() { | |
s := "ZW5jb2RlZCBtZXNzYWdl" | |
sDec, _ := b64.StdEncoding.DecodeString(s) | |
fmt.Println(string(sDec)) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment