go-faker / faker

Go (Golang) Fake Data Generator for Struct, previously https://github.com/bxcodec/faker
https://pkg.go.dev/github.com/go-faker/faker/v4
MIT License
614 stars 30 forks source link

faker slice of urls don't work #37

Open ip75 opened 9 months ago

ip75 commented 9 months ago
type Entity struct {
    ID                uuid.UUID       //`faker:"uuid"`  //  NOT IMPLEMENTED, WHY!?
    Uris []string        `faker:"slice_len=3, url"`  // makes all structure empty. I just need slice with 3 urls
    Map map[string]bool //`faker:"oneof: password, code"` // how to make keys in map with predefined values ?
}

It's a pity but I have to chose another library to generate test objects because i'm not able to make my test structures