fix: gutil.IsMap judgment logic error (#2953)

This commit is contained in:
the harder the luckier
2023-09-13 19:30:02 +08:00
committed by GitHub
parent e684eae878
commit ef1e18df19
2 changed files with 6 additions and 0 deletions

View File

@ -74,6 +74,7 @@ func IsMap(value interface{}) bool {
)
for reflectKind == reflect.Ptr {
reflectValue = reflectValue.Elem()
reflectKind = reflectValue.Kind()
}
switch reflectKind {
case reflect.Map: