1 package tests 2 3 //easyjson:json 4 type ErrorIntSlice []int 5 6 //easyjson:json 7 type ErrorBoolSlice []bool 8 9 //easyjson:json 10 type ErrorUintSlice []uint 11 12 //easyjson:json 13 type ErrorStruct struct { 14 Int int `json:"int"` 15 String string `json:"string"` 16 Slice []int `json:"slice"` 17 IntSlice []int `json:"int_slice"` 18 } 19 20 type ErrorNestedStruct struct { 21 ErrorStruct ErrorStruct `json:"error_struct"` 22 Int int `json:"int"` 23 } 24 25 //easyjson:json 26 type ErrorIntMap map[uint32]string 27