-
Notifications
You must be signed in to change notification settings - Fork 1
/
models.go
62 lines (57 loc) · 1.19 KB
/
models.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
package test
//go:generate encodegen -t TestMessageSimple,TestMessageEmbedded
import (
imported "go.sia.tech/encodegen/internal/test/imported"
importedrename "go.sia.tech/encodegen/internal/test/imported"
importedchild "go.sia.tech/encodegen/internal/test/imported/imported"
importedchild1 "go.sia.tech/encodegen/internal/test/imported/imported"
importedchild2 "go.sia.tech/encodegen/internal/test/imported/imported"
importedchild3 "go.sia.tech/encodegen/internal/test/imported/imported/imported"
"go.sia.tech/encodegen/internal/test/imported/subimported"
)
type Hash [32]byte
type TestMessageSimple struct {
A uint64
B uint32
C uint16
D uint8
E bool
F [32]Hash
G []byte
H imported.Imported
I *uint64
J *imported.Imported
K ***uint64
L []*imported.Imported
M subimported.HashAlias
O []importedrename.Imported
P []importedchild.Imported
Q *importedchild1.Imported
R []importedchild2.Imported
S []*importedchild3.Imported
}
type TestMessageEmbedded struct {
A struct {
A uint64
B uint32
C uint16
D uint8
E int8
F bool
G []byte
H struct {
I []int
}
}
B []struct {
A int
B string
C bool
D imported.Imported
}
C []*struct {
A int
B string
C bool
}
}