Open bigfoot31 opened 2 years ago
@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)
}
runtime: goroutine stack exceeds 1000000000-byte limit
runtime: sp=0xc020260408 stack=[0xc020260000, 0xc040260000]
fatal error: stack overflow
Tips : if you don't care about the field :
type A struct {
ChildrenType1 []*A `fake:"skip"`
}
I'm taking a look on this
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/amd64