-
-
Notifications
You must be signed in to change notification settings - Fork 61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Struct().Fill() is not correctly handling nested structures #94
Labels
bug
Something isn't working
Comments
jaswdr
changed the title
[BUG] ...
[BUG] Struct().Fill() is not correctly handling nested structures
Jul 5, 2022
@bigfoot31 this issue is quite old now and we have tests to validate nested structures, would you mind check if this error happens with the newest version? If still happens, can you provide a complete code sample you are using? |
It sill happens on the last tagged version and the master branch package main
import (
"github.com/jaswdr/faker"
)
type A struct {
ChildrenType1 []*A
}
func main() {
tmp := A{}
faker.New().Struct().Fill(&tmp)
}
|
Tips : if you don't care about the field : type A struct {
ChildrenType1 []*A `fake:"skip"`
} |
I'm taking a look on this |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
goroutine stack exceeds 1000000000-byte limit
To Reproduce
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
Desktop (please complete the following information):
go version
output: go version go1.17.3 darwin/amd64The text was updated successfully, but these errors were encountered: