Upgrade xorm to v1.1.0 (#15869) (#15885)

This commit is contained in:
Lunny Xiao
2021-05-16 02:32:17 +08:00
committed by GitHub
parent c21167e3a2
commit ad54f008ac
55 changed files with 1306 additions and 438 deletions

View File

@@ -6,15 +6,15 @@ package json
import "encoding/json"
// JSONInterface represents an interface to handle json data
type JSONInterface interface {
// Interface represents an interface to handle json data
type Interface interface {
Marshal(v interface{}) ([]byte, error)
Unmarshal(data []byte, v interface{}) error
}
var (
// DefaultJSONHandler default json handler
DefaultJSONHandler JSONInterface = StdJSON{}
DefaultJSONHandler Interface = StdJSON{}
)
// StdJSON implements JSONInterface via encoding/json