summaryrefslogtreecommitdiffstats
path: root/vendor/github.com/mailru/easyjson/tests/errors.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/mailru/easyjson/tests/errors.go')
-rw-r--r--vendor/github.com/mailru/easyjson/tests/errors.go26
1 files changed, 26 insertions, 0 deletions
diff --git a/vendor/github.com/mailru/easyjson/tests/errors.go b/vendor/github.com/mailru/easyjson/tests/errors.go
new file mode 100644
index 000000000..14360fcc2
--- /dev/null
+++ b/vendor/github.com/mailru/easyjson/tests/errors.go
@@ -0,0 +1,26 @@
+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