package main import ( "encoding/base64" "fmt" "git.daimon.cc/daimon99/hsyc-utils/pkg/utils" ) func main() { utils.SetKey("12345678901234567890123456789012") result, err := utils.Encode([]string{"n1", "n2"}) if err != nil { fmt.Println(err) } fmt.Println(result) decoded, _ := utils.Decode(result) fmt.Printf("{%v}", decoded) utils.CustomBase64Encode([]byte("1234561111")) result = base64.StdEncoding.EncodeToString([]byte("123456290asdfjba测试sdf")) fmt.Println(result) }