14 lines
196 B
Go
14 lines
196 B
Go
package base62
|
|
|
|
import (
|
|
"testing"
|
|
)
|
|
|
|
func TestEncode(t *testing.T) {
|
|
e := GetInstance().Encode([]byte("问问哇啊啊"))
|
|
t.Log(e)
|
|
|
|
d, err := GetInstance().Decode(e)
|
|
t.Log(string(d), err)
|
|
}
|