forked from ebhomengo/niki
1
0
Fork 0
niki/vendor/github.com/brianvoe/gofakeit/v6/data/README.md

491 B

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