mirror of
https://gitee.com/johng/gf
synced 2026-06-07 02:12:11 +08:00
Update util/gconv/internal/converter/converter_struct.go
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
@ -160,7 +160,7 @@ func (c *Converter) Struct(params, pointer any, option ...StructOption) (err err
|
||||
return err
|
||||
}
|
||||
if paramsMap == nil {
|
||||
// fails converting params to map, it so cannot be converted to struct pointer.
|
||||
// fails converting params to map, so it cannot be converted to struct pointer.
|
||||
return gerror.NewCodef(
|
||||
gcode.CodeInvalidParameter,
|
||||
`convert params "%v" to "%s" failed`,
|
||||
|
||||
Reference in New Issue
Block a user