If you want to add a new data type and you do not have the time for a PR please make a CSV or a Go map and send it to me, I will add it to the project. Example: https://github.com/bgadrian/fastfaker/blob/master/data/colors.go
Add an Issue https://github.com/bgadrian/fastfaker/issues
After we agreed on the implementation you can make a Pull Request with the description:
<Functionality description>
Fixes #issueID
- Go (preferable the latest version)
- bash-like environment with
make
- maintain the 100% test coverage
- pass gometalinter without warnings
- code must be proper formatted with
go fmt
andgo imports
- each Public method must examples or tests, and a benchmark
- maintain the Go 1.0 compatibility
The templates system is built on top of generated code. Make sure you run
$ make generate
each time you update a Faker
public method.