status-go/vendor/github.com/brianvoe/gofakeit/v6/data
Igor Sirotin 9a45ae09ca
chore_: add gofakeit dependency (#6110)
* chore_: add gofakeit dependency

* fix_: linter
2024-11-20 12:33:05 +00:00
..
README.md chore_: add gofakeit dependency (#6110) 2024-11-20 12:33:05 +00:00
address.go chore_: add gofakeit dependency (#6110) 2024-11-20 12:33:05 +00:00
animals.go chore_: add gofakeit dependency (#6110) 2024-11-20 12:33:05 +00:00
beer.go chore_: add gofakeit dependency (#6110) 2024-11-20 12:33:05 +00:00
book.go chore_: add gofakeit dependency (#6110) 2024-11-20 12:33:05 +00:00
car.go chore_: add gofakeit dependency (#6110) 2024-11-20 12:33:05 +00:00
celebrity.go chore_: add gofakeit dependency (#6110) 2024-11-20 12:33:05 +00:00
colors.go chore_: add gofakeit dependency (#6110) 2024-11-20 12:33:05 +00:00
company.go chore_: add gofakeit dependency (#6110) 2024-11-20 12:33:05 +00:00
computer.go chore_: add gofakeit dependency (#6110) 2024-11-20 12:33:05 +00:00
currency.go chore_: add gofakeit dependency (#6110) 2024-11-20 12:33:05 +00:00
data.go chore_: add gofakeit dependency (#6110) 2024-11-20 12:33:05 +00:00
datetime.go chore_: add gofakeit dependency (#6110) 2024-11-20 12:33:05 +00:00
emoji.go chore_: add gofakeit dependency (#6110) 2024-11-20 12:33:05 +00:00
errors.go chore_: add gofakeit dependency (#6110) 2024-11-20 12:33:05 +00:00
files.go chore_: add gofakeit dependency (#6110) 2024-11-20 12:33:05 +00:00
food.go chore_: add gofakeit dependency (#6110) 2024-11-20 12:33:05 +00:00
hacker.go chore_: add gofakeit dependency (#6110) 2024-11-20 12:33:05 +00:00
hipster.go chore_: add gofakeit dependency (#6110) 2024-11-20 12:33:05 +00:00
html.go chore_: add gofakeit dependency (#6110) 2024-11-20 12:33:05 +00:00
internet.go chore_: add gofakeit dependency (#6110) 2024-11-20 12:33:05 +00:00
job.go chore_: add gofakeit dependency (#6110) 2024-11-20 12:33:05 +00:00
languages.go chore_: add gofakeit dependency (#6110) 2024-11-20 12:33:05 +00:00
log_level.go chore_: add gofakeit dependency (#6110) 2024-11-20 12:33:05 +00:00
lorem.go chore_: add gofakeit dependency (#6110) 2024-11-20 12:33:05 +00:00
minecraft.go chore_: add gofakeit dependency (#6110) 2024-11-20 12:33:05 +00:00
movie.go chore_: add gofakeit dependency (#6110) 2024-11-20 12:33:05 +00:00
payment.go chore_: add gofakeit dependency (#6110) 2024-11-20 12:33:05 +00:00
person.go chore_: add gofakeit dependency (#6110) 2024-11-20 12:33:05 +00:00
product.go chore_: add gofakeit dependency (#6110) 2024-11-20 12:33:05 +00:00
school.go chore_: add gofakeit dependency (#6110) 2024-11-20 12:33:05 +00:00
sentence.go chore_: add gofakeit dependency (#6110) 2024-11-20 12:33:05 +00:00
word.go chore_: add gofakeit dependency (#6110) 2024-11-20 12:33:05 +00:00

README.md

Gofakeit Data

Gofakeit data set

List

List()

Get/Set/Remove Data

data.Get("desserts")

data.Set("desserts", map[string][]string{
    "cake":      {"chocolate", "vanilla"},
    "pie":       {"apple", "pecan"},
    "ice cream": {"strawberry", "vanilla"},
})

data.Remove("desserts")

Get/Set/Remove Sub Data

data.GetSubData("desserts", "cake")

data.SetSub("desserts", "cake", []string{"chocolate", "vanilla"})

data.RemoveSub("desserts", "cake")