Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
9 lines (7 sloc) 168 Bytes
package main
import b64 "encoding/base64"
func main() {
data := "base64 encoded string"
sEnc := b64.StdEncoding.EncodeToString([]byte(data))
fmt.Println(sEnc)
}