NameWith returns a random name with a custom delimiter. Names are not guaranteed to be unique.
(delim string)
| 28 | // NameWith returns a random name with a custom delimiter. |
| 29 | // Names are not guaranteed to be unique. |
| 30 | func NameWith(delim string) string { |
| 31 | const seed = 0 // gofakeit will use a random crypto seed. |
| 32 | faker := gofakeit.New(seed) |
| 33 | adjective := strings.ToLower(faker.AdjectiveDescriptive()) |
| 34 | last := strings.ToLower(faker.LastName()) |
| 35 | return adjective + delim + last |
| 36 | } |
| 37 | |
| 38 | // NameDigitWith returns a random name with a two-digit suffix (00-99), |
| 39 | // in the format "[adjective][delim][surname][digit]" e.g. "happy_smith42". |
no test coverage detected