You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 8, 2022. It is now read-only.
I am getting interface{} not allowed error. I don't have any interface{} type element in the struct. The only interface is error, all others are collection type.
The text was updated successfully, but these errors were encountered:
mangatmodi
changed the title
interface{} not allowed for non interface types?
> V3.0.0 not working with interfaces any more
Dec 17, 2019
mangatmodi
changed the title
> V3.0.0 not working with interfaces any more
V3.1.0+ not working with interfaces any more
Dec 17, 2019
mangatmodi
changed the title
V3.1.0+ not working with interfaces any more
not working with interface type?
Dec 17, 2019
mangatmodi
changed the title
not working with interface type?
Not working with interface type?
Dec 17, 2019
Ok, so error is of type interface. With Nil value faker can't tell which concrete implementation to use, hence the error. It is expected. I was dumb to realise is so late.
Maybe in wiki we should edit it from interface{} to interface with nil values to make it more clear to people?
I am using
faker/v3
module. I understand that faker doesn't work withinterface{}
, however in the following codeI am getting
interface{} not allowed
error. I don't have anyinterface{}
type element in the struct. The only interface iserror
, all others are collection type.The text was updated successfully, but these errors were encountered: