Skip to content
Permalink
master
Switch branches/tags
Go to file
 
 
Cannot retrieve contributors at this time
8 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)
}