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
address.go
animals.go
beer.go
book.go
car.go
celebrity.go
colors.go
company.go
computer.go
currency.go
data.go
datetime.go
emoji.go
errors.go
files.go
food.go
hacker.go
hipster.go
html.go
internet.go
job.go
languages.go
log_level.go
lorem.go
minecraft.go
movie.go
payment.go
person.go
product.go
school.go
sentence.go
word.go

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")