package yu_proto_old import ( "fmt" yu_hex "gogs.qqck.cn/s/tools/hex" "testing" ) type Arr struct { SSS struct { A []struct { A string B string C string D string } `protobuf:"5"` } `protobuf:"10"` } func TestProtobuf_Set(t *testing.T) { fmt.Println(yu_hex.Upper(Encode(&Arr{ struct { A []struct { A string B string C string D string } `protobuf:"5"` }(struct { A []struct { A string B string C string D string } }{A: []struct { A string B string C string D string }{ {"asd", "das", "123", "dasd"}, {"123", "das", "123", "dasd"}, {"321", "das", "123", "dasd"}, }}), }))) }