mirror of
https://gitee.com/johng/gf
synced 2026-06-07 02:12:11 +08:00
fix: gutil.IsMap judgment logic error (#2953)
This commit is contained in:
committed by
GitHub
parent
e684eae878
commit
ef1e18df19
@ -74,6 +74,7 @@ func IsMap(value interface{}) bool {
|
||||
)
|
||||
for reflectKind == reflect.Ptr {
|
||||
reflectValue = reflectValue.Elem()
|
||||
reflectKind = reflectValue.Kind()
|
||||
}
|
||||
switch reflectKind {
|
||||
case reflect.Map:
|
||||
|
||||
Reference in New Issue
Block a user