-
Notifications
You must be signed in to change notification settings - Fork 22
Open
Description
I have a struct like below
type Model struct {
ID uuid.UUID
}
type User struct {
Model
Name string
}and I am trying to do something like this
var UserFactory = factory.NewFactory(&models.User{}).
Attr("ID", func(args factory.Args) (interface{}, error) {
id := uuid.NewV4()
return id, nil
})and I got this No such attribute name: ID, I don't have idea how to resolve this.
Metadata
Metadata
Assignees
Labels
No labels