mirror of
https://gitee.com/johng/gf.git
synced 2024-12-04 05:07:44 +08:00
17 lines
204 B
Go
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)
|
|
}
|