jaswdr / faker

:rocket: Ultimate fake data generator for Go with zero dependencies
https://pkg.go.dev/github.com/jaswdr/faker
MIT License
549 stars 59 forks source link

[FEATURE] Generate unique value to struct's fields. #146

Open donnol opened 1 year ago

donnol commented 1 year ago
type User struct {
        Id             int               // unique value in this struct, like: 1.
        Age          int               // unique value in this struct, other value except 1, like: 2.
        Name      string           // unique value in this struct, like: "Jack".
        Phone      string          // unique value in this struct, other vlaue except "Jack".
}