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.08k stars 149 forks source link

Bool values or OneOf #82

Open Narven opened 4 years ago

Narven commented 4 years ago

Like so many other faker libraries, is it possible to generate fake bool values and OneOf.

I think that bool is easy to understand, but with OneOf, I was searching for something like this

faker:"oneof="foo","bar","x","y"

thanks

bxcodec commented 4 years ago

I'll appreciate if someone can submit a PR for this.

I'm pretty busy at the moment, still need to find the best time to research this.

andrew-werdna commented 4 years ago

I'm working on a PR for this, will hopefully open before the weekend is done.

bxcodec commented 4 years ago

Thanks @andrew-werdna , really appreciate it

bxcodec commented 4 years ago

Re-open this for Hex/Binary and Octa