Skip to content

Commit f69a9cf

Browse files
shabbyrobephilhofer
authored andcommitted
Support for non-inlined nested decodes
1 parent 1360bda commit f69a9cf

File tree

8 files changed

+203
-141
lines changed

8 files changed

+203
-141
lines changed

_generated/errorwrap.go

+20-8
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,16 @@ type ErrorCtxMapChild struct {
99
Val string
1010
}
1111

12+
type ErrorCtxMapChildNotInline struct {
13+
Val1, Val2, Val3, Val4, Val5 string
14+
}
15+
1216
type ErrorCtxAsMap struct {
13-
Val string
14-
Child *ErrorCtxMapChild
15-
Children []*ErrorCtxMapChild
16-
Map map[string]string
17+
Val string
18+
Child *ErrorCtxMapChild
19+
Children []*ErrorCtxMapChild
20+
ComplexChild *ErrorCtxMapChildNotInline
21+
Map map[string]string
1722

1823
Nest struct {
1924
Val string
@@ -36,13 +41,20 @@ type ErrorCtxTupleChild struct {
3641
Val string
3742
}
3843

44+
//msgp:tuple ErrorCtxTupleChildNotInline
45+
46+
type ErrorCtxTupleChildNotInline struct {
47+
Val1, Val2, Val3, Val4, Val5 string
48+
}
49+
3950
//msgp:tuple ErrorCtxAsTuple
4051

4152
type ErrorCtxAsTuple struct {
42-
Val string
43-
Child *ErrorCtxTupleChild
44-
Children []*ErrorCtxTupleChild
45-
Map map[string]string
53+
Val string
54+
Child *ErrorCtxTupleChild
55+
Children []*ErrorCtxTupleChild
56+
ComplexChild *ErrorCtxTupleChildNotInline
57+
Map map[string]string
4658

4759
Nest struct {
4860
Val string

0 commit comments

Comments
 (0)