forked from ebhomengo/niki
491 B
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")