Files

33 lines
609 B
Go
Raw Permalink Normal View History

2016-12-19 21:21:28 +03:00
package tests
//easyjson:json
type ErrorIntSlice []int
2016-12-20 17:49:43 +03:00
//easyjson:json
type ErrorBoolSlice []bool
//easyjson:json
type ErrorUintSlice []uint
2017-01-08 17:47:01 +03:00
//easyjson:json
type ErrorStruct struct {
Int int `json:"int"`
String string `json:"string"`
Slice []int `json:"slice"`
IntSlice []int `json:"int_slice"`
}
type ErrorNestedStruct struct {
ErrorStruct ErrorStruct `json:"error_struct"`
Int int `json:"int"`
}
2017-10-19 19:07:55 -07:00
//easyjson:json
type ErrorIntMap map[uint32]string
//easyjson:json
type ErrorFloatTypes struct {
Float64 float64 `json:"float64"`
Float32 float32 `json:"float32"`
}