mirror of
https://github.com/charlienet/go-mixed.git
synced 2026-03-08 06:50:48 +08:00
update
This commit is contained in:
@@ -1,8 +1,10 @@
|
||||
package bytesconv
|
||||
|
||||
import (
|
||||
"encoding/hex"
|
||||
"encoding/json"
|
||||
"testing"
|
||||
"time"
|
||||
)
|
||||
|
||||
type SimpleUser struct {
|
||||
@@ -25,3 +27,18 @@ func TestGob(t *testing.T) {
|
||||
|
||||
t.Logf("%+v", u2)
|
||||
}
|
||||
|
||||
type delayTask struct {
|
||||
message string
|
||||
delay time.Time
|
||||
execute func()
|
||||
}
|
||||
|
||||
func TestMarshal(t *testing.T) {
|
||||
d := delayTask{
|
||||
message: "sssssssss",
|
||||
}
|
||||
|
||||
b, err := Encode(d)
|
||||
t.Log(hex.EncodeToString(b), err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user