Files
mostlymatter/vendor/github.com/mailru/easyjson/tests/errors.go
2018-01-29 14:17:40 -08:00

27 строки
492 B
Go

package tests
//easyjson:json
type ErrorIntSlice []int
//easyjson:json
type ErrorBoolSlice []bool
//easyjson:json
type ErrorUintSlice []uint
//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"`
}
//easyjson:json
type ErrorIntMap map[uint32]string