This commit is contained in:
2021-10-22 18:33:23 +08:00
parent 903b461bdd
commit 9fe13ba832
4 changed files with 170 additions and 10 deletions

View File

@@ -24,10 +24,10 @@ type Msg struct {
}
type pkg struct {
N int
V1 []byte
V2 []byte
V3 []byte
N int `json:"n"`
V1 []byte `json:"v_1"`
V2 []byte `json:"v_2"`
V3 []byte `json:"v_3"`
}
func Marshal(msg *Msg) ([]byte, error) {