gf/.example/encoding/gbase64/gbase64.go
2019-09-24 23:41:18 +08:00

17 lines
204 B
Go

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