We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bd82c25 commit b17fa6cCopy full SHA for b17fa6c
error.go
@@ -15,8 +15,8 @@ type Error interface {
15
16
type ErrorPayload struct {
17
CodePayload int `json:"code"`
18
- MessagePayload string `json:"message"`
19
- DataPlayload interface{} `json:"data"`
+ MessagePayload string `json:"message,omitempty"`
+ DataPlayload interface{} `json:"data,omitempty"`
20
}
21
22
func New(code int, message string) Error {
go.mod
@@ -1,3 +1,3 @@
1
module github.com/remoteit/systemkit-errorx
2
3
-go 1.13
+go 1.15
0 commit comments