change layout
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
package response
|
||||
|
||||
import "encoding/json"
|
||||
import jsoniter "github.com/json-iterator/go"
|
||||
|
||||
var _ Error = (*err)(nil)
|
||||
|
||||
@@ -53,7 +53,7 @@ func (e *err) ToString() string {
|
||||
Data: e.Data,
|
||||
}
|
||||
|
||||
raw, _ := json.Marshal(err)
|
||||
raw, _ := jsoniter.Marshal(err)
|
||||
return string(raw)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user