适配EasyMap
This commit is contained in:
4
map.go
4
map.go
@ -33,9 +33,9 @@ func EasyMap(mapData interface{}) Map {
|
||||
// Date : 15:06 2023/8/10
|
||||
func EasyMapWithError(mapData interface{}) (Map, error) {
|
||||
if nil == mapData {
|
||||
return easymap.NewNormal(true), nil
|
||||
return easymap.NewNormal(), nil
|
||||
}
|
||||
m := easymap.NewNormal(true)
|
||||
m := easymap.NewNormal()
|
||||
reflectType := reflect.TypeOf(mapData)
|
||||
if reflectType.Kind() != reflect.Map {
|
||||
mapFormatData := make(map[string]interface{})
|
||||
|
Reference in New Issue
Block a user