Define draw, hold, pin, family, whole and fence in the package doc
This commit is contained in:
-12
@@ -1,15 +1,3 @@
|
||||
// Package fejkdata generates fake data from recursive JSON templates.
|
||||
//
|
||||
// Data lives in JSON, not in Go. A generator starts from the shipped data set and
|
||||
// layers any directories you add; folders and files become a dot-path namespace,
|
||||
// then generate values by path:
|
||||
//
|
||||
// f, _ := fejkdata.New(fejkdata.WithSeed(42))
|
||||
// f.Fake("sv_SE.address") // "Järvedsvägen 43\n891 77 Järved"
|
||||
// f.Fake("sv_SE.address.locality") // "Sundbyberg": a second call draws afresh
|
||||
//
|
||||
// Several sources merge in order, the last winning a name clash, so custom data
|
||||
// layers over the built-ins. The JSON template format is documented in the README.
|
||||
package fejkdata
|
||||
|
||||
import (
|
||||
|
||||
Reference in New Issue
Block a user