适配EasyMap

This commit is contained in:
2023-12-24 22:53:27 +08:00
parent a427bc63c5
commit d9aed3d800
3 changed files with 8 additions and 4 deletions

4
map.go
View File

@ -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{})