bxcodec / faker

Go (Golang) Fake Data Generator for Struct. [Notes]This repository is archived, moved to the new repository https://github.com/go-faker/faker
https://pkg.go.dev/github.com/bxcodec/faker/v4
MIT License
2.09k stars 148 forks source link

fix slice len #140

Closed qiangmzsx closed 3 years ago

qiangmzsx commented 3 years ago

fix bug:

AdCode[]string `json:"ad_code" xorm:"ad_code" faker:"len=slice_len=5,len=10"` 

return:

{AdCode:[rMZLe XgkhW IZHBZ qEaWa nwrKJ]}

but

AdCode[]string `json:"ad_code" xorm:"ad_code" faker:"len=10,slice_len=5"`

return:

{AdCode:[RotjXUZmnq MTbKBCQhJC PedUsSqIwv xTnlUgWajY PBENmHwGfc]}