Skip to content

Commit b17fa6c

Browse files
committed
use latest go
1 parent bd82c25 commit b17fa6c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

error.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ type Error interface {
1515

1616
type ErrorPayload struct {
1717
CodePayload int `json:"code"`
18-
MessagePayload string `json:"message"`
19-
DataPlayload interface{} `json:"data"`
18+
MessagePayload string `json:"message,omitempty"`
19+
DataPlayload interface{} `json:"data,omitempty"`
2020
}
2121

2222
func New(code int, message string) Error {

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module github.com/remoteit/systemkit-errorx
22

3-
go 1.13
3+
go 1.15

0 commit comments

Comments
 (0)