mirror of
https://github.com/gin-gonic/gin.git
synced 2025-04-25 11:06:48 +08:00
Rename var
This commit is contained in:
parent
2950dca3ce
commit
82afcaaaf3
@ -243,13 +243,13 @@ func setWithProperType(val string, value reflect.Value, field reflect.StructFiel
|
||||
return err
|
||||
}
|
||||
|
||||
ms, err := json.Marshal(val)
|
||||
mv, err := json.Marshal(val)
|
||||
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
return json.Unmarshal(ms, value.Addr().Interface())
|
||||
return json.Unmarshal(mv, value.Addr().Interface())
|
||||
case reflect.Map:
|
||||
return json.Unmarshal(bytesconv.StringToBytes(val), value.Addr().Interface())
|
||||
default:
|
||||
|
Loading…
x
Reference in New Issue
Block a user