package utils import ( "fmt" "pro2d/protos/pb" "testing" ) func TestCreateToken(t *testing.T) { account := &pb.AccountInfo{ Phone: "17683852936", Password: "123456", Uid: 12312, Device: "12312312", } token := CreateToken(account) ac := ParseToken(token) fmt.Println("token: ", token, "\nac: ", ac) }