Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Foo ¶
type Foo struct { Bar string Int int Pointer *int Name string `fake:"{firstname}"` // Any available function all lowercase Sentence string `fake:"{sentence:3}"` // Can call with parameters RandStr string `fake:"{randomstring:[hello,world]}"` Number string `fake:"{number:1,10}"` // Comma separated for multiple values Regex string `fake:"{regex:[abcdef]{5}}"` // Generate string from regex Skip *string `fake:"skip"` // Set to "skip" to not generate data for Created time.Time // Can take in a fake tag as well as a format tag CreatedFormat time.Time `fake:"{year}-{month}-{day}" format:"2006-01-02"` }
Click to show internal directories.
Click to hide internal directories.