Fixing convert uuid.UUID => uuid.UUID
This commit is contained in:
parent
bf847e845e
commit
dea7cb49b0
@ -84,7 +84,11 @@ func Сonvert(from interface{}, kind string, to interface{}) {
|
||||
switch f.Type.String() {
|
||||
case "uuid.UUID":
|
||||
mv := fv.Interface().(uuid.UUID)
|
||||
ft.SetString(mv.String())
|
||||
if ft.Type().String() == "uuid.UUID" {
|
||||
ft.Set(fv)
|
||||
} else {
|
||||
ft.SetString(mv.String())
|
||||
}
|
||||
default:
|
||||
ft.Set(fv)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user