1package _generated 2 3//go:generate msgp 4 5// The leaves of interest in this crazy structs are strings. The test case 6// looks for strings in the serialised msgpack and makes them unreadable. 7 8type ErrorCtxMapChild struct { 9 Val string 10} 11 12type ErrorCtxMapChildNotInline struct { 13 Val1, Val2, Val3, Val4, Val5 string 14} 15 16type ErrorCtxAsMap struct { 17 Val string 18 Child *ErrorCtxMapChild 19 Children []*ErrorCtxMapChild 20 ComplexChild *ErrorCtxMapChildNotInline 21 Map map[string]string 22 23 Nest struct { 24 Val string 25 Child *ErrorCtxMapChild 26 Children []*ErrorCtxMapChild 27 Map map[string]string 28 29 Nest struct { 30 Val string 31 Child *ErrorCtxMapChild 32 Children []*ErrorCtxMapChild 33 Map map[string]string 34 } 35 } 36} 37 38//msgp:tuple ErrorCtxTupleChild 39 40type ErrorCtxTupleChild struct { 41 Val string 42} 43 44//msgp:tuple ErrorCtxTupleChildNotInline 45 46type ErrorCtxTupleChildNotInline struct { 47 Val1, Val2, Val3, Val4, Val5 string 48} 49 50//msgp:tuple ErrorCtxAsTuple 51 52type ErrorCtxAsTuple struct { 53 Val string 54 Child *ErrorCtxTupleChild 55 Children []*ErrorCtxTupleChild 56 ComplexChild *ErrorCtxTupleChildNotInline 57 Map map[string]string 58 59 Nest struct { 60 Val string 61 Child *ErrorCtxTupleChild 62 Children []*ErrorCtxTupleChild 63 Map map[string]string 64 65 Nest struct { 66 Val string 67 Child *ErrorCtxTupleChild 68 Children []*ErrorCtxTupleChild 69 Map map[string]string 70 } 71 } 72} 73