-
Notifications
You must be signed in to change notification settings - Fork 51
/
gosercomp_data.go
97 lines (81 loc) · 2.14 KB
/
gosercomp_data.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
package main
import (
"github.com/golang/protobuf/proto"
"github.com/thrift-iterator/go/general"
model "github.com/smallnest/gosercomp/model"
)
var group = model.ColorGroup{
Id: 1,
Name: "Reds",
Colors: []string{"Crimson", "Red", "Ruby", "Maroon"},
}
var avroGroup = model.AvroColorGroup{
Id: 1,
Name: "Reds",
Colors: []string{"Crimson", "Red", "Ruby", "Maroon"},
}
var zgroup = model.ZColorGroup{
Id: 1,
Name: "Reds",
Colors: []string{"Crimson", "Red", "Ruby", "Maroon"},
}
var egroup = model.EColorGroup{
Id: 1,
Name: "Reds",
Colors: []string{"Crimson", "Red", "Ruby", "Maroon"},
}
var fgroup = model.FColorGroup{
Id: 1,
Name: "Reds",
Colors: []string{"Crimson", "Red", "Ruby", "Maroon"},
}
var thriftColorGroup = model.ThriftColorGroup{
ID: 1,
Name: "Reds",
Colors: []string{"Crimson", "Red", "Ruby", "Maroon"},
}
var protobufGroup = model.ProtoColorGroup{
Id: proto.Int32(17),
Name: proto.String("Reds"),
Colors: []string{"Crimson", "Red", "Ruby", "Maroon"},
}
var gogoProtobufGroup = model.GogoProtoColorGroup{
Id: proto.Int32(1),
Name: proto.String("Reds"),
Colors: []string{"Crimson", "Red", "Ruby", "Maroon"},
}
var colferGroup = model.ColferColorGroup{
Id: 1,
Name: "Reds",
Colors: []string{"Crimson", "Red", "Ruby", "Maroon"},
}
var avroSchema = `{"namespace": "gosercomp",
"type": "record",
"name": "ColorGroup",
"fields": [
{"name": "id", "type": "int"},
{"name": "name", "type": "string"},
{"name": "colors", "type": {"type": "array", "items": "string"}}
]
}`
var rlpgroup = model.RlpColorGroup{
Id: 1,
Name: "Reds",
Colors: []string{"Crimson", "Red", "Ruby", "Maroon"},
}
var gojayGroup = &model.GojayColorGroup{
Id: 1,
Name: "Reds",
Colors: []string{"Crimson", "Red", "Ruby", "Maroon"},
}
var thrfitIterGroup = model.ThriftIterColorGroup{
ID: 1,
Name: "Reds",
Colors: []string{"Crimson", "Red", "Ruby", "Maroon"},
}
var thrfitIterGroupDynamic = general.Struct{
1: int32(1),
2: string("Reds"),
// 3: general.List{string("Crimson"), string("Red"), string("Ruby"), string("Maroon")},
3: general.List{"Crimson", "Red", "Ruby", "Maroon"},
}