package utils import ( "fmt" "testing" "time" ) func TestStructToMap(t *testing.T) { type GoodsSearchReq struct { A int `json:"a"` } } func TestGetSerial(t *testing.T) { InitSnowFlakeByGo() for i := 0; i <= 10000; i++ { fmt.Println("订单编号:", GetSerialNo()) fmt.Println("时间戳:", time.Now().Unix()) } }