Base64 in Go: Difference between revisions
Jump to navigation
Jump to search
Line 6: | Line 6: | ||
<font color=darkkhaki>TODO</font> | <font color=darkkhaki>TODO</font> | ||
<syntaxhighlight lang='go'> | <syntaxhighlight lang='go'> | ||
base64EncodedStr := "..." | |||
data, err := base64.StdEncoding.DecodeString(base64EncodedStr) | |||
if err != nil { | |||
... | |||
} | } | ||
s := string(data) | |||
</syntaxhighlight> | </syntaxhighlight> |
Revision as of 01:52, 13 March 2024
Internal
Overview
TODO
base64EncodedStr := "..."
data, err := base64.StdEncoding.DecodeString(base64EncodedStr)
if err != nil {
...
}
s := string(data)