gf/geg/encoding/gbase64.go
2019-04-03 00:03:46 +08:00

16 lines
202 B
Go

package main
import (
"fmt"
"github.com/gogf/gf/g/encoding/gbase64"
)
func main() {
s := "john"
b := gbase64.Encode(s)
c, e := gbase64.Decode(b)
fmt.Println(b)
fmt.Println(c)
fmt.Println(e)
}