mirror of
https://gitee.com/johng/gf.git
synced 2024-12-05 05:37:55 +08:00
19 lines
229 B
Go
19 lines
229 B
Go
package main
|
|
|
|
import (
|
|
"fmt"
|
|
"gitee.com/johng/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)
|
|
}
|
|
|
|
|
|
|