SYMBOL INDEX (102 symbols across 16 files) FILE: cmd/import/main.go constant targetDir (line 15) | targetDir = "pkg/data" constant fileTemplate (line 18) | fileTemplate = `package data function main (line 121) | func main() { FILE: integration/cli_test.go function TestCLI (line 12) | func TestCLI(t *testing.T) { function TestGeneratorDescription (line 121) | func TestGeneratorDescription(t *testing.T) { function TestFileGenerator (line 150) | func TestFileGenerator(t *testing.T) { FILE: integration/setup_test.go constant binaryName (line 17) | binaryName = "fakedata-with-cover" function TestMain (line 21) | func TestMain(m *testing.M) { function runBinary (line 39) | func runBinary(args ...string) ([]byte, error) { FILE: integration/templates_test.go type templateTestCase (line 12) | type templateTestCase struct function TestTemplatesWithCLIArgs (line 26) | func TestTemplatesWithCLIArgs(t *testing.T) { function TestTemplatesWithPipe (line 35) | func TestTemplatesWithPipe(t *testing.T) { function verifyOutput (line 48) | func verifyOutput(t *testing.T, tt templateTestCase, output []byte, err ... FILE: main.go function generatorsHelp (line 16) | func generatorsHelp(generators fakedata.Generators) string { function isPipe (line 33) | func isPipe() bool { function findTemplate (line 42) | func findTemplate(path string) string { function main (line 66) | func main() { FILE: pkg/fakedata/column.go type Column (line 10) | type Column struct type Columns (line 17) | type Columns method GenerateRow (line 60) | func (columns Columns) GenerateRow(f io.Writer, formatter Formatter) { method GenerateHeader (line 71) | func (columns Columns) GenerateHeader(f io.Writer, formatter Formatter) { function NewColumns (line 21) | func NewColumns(keys []string) (cols Columns, err error) { FILE: pkg/fakedata/column_test.go type columnsTests (line 16) | type columnsTests function columnsEql (line 23) | func columnsEql(a, b fakedata.Columns) bool { function TestNewColumns (line 37) | func TestNewColumns(t *testing.T) { function TestNewColumnsWithName (line 77) | func TestNewColumnsWithName(t *testing.T) { type args (line 111) | type args struct function TestGenerateRow (line 116) | func TestGenerateRow(t *testing.T) { function TestGenerateRowWithIntRanges (line 185) | func TestGenerateRowWithIntRanges(t *testing.T) { function TestGenerateRowWithDateRanges (line 230) | func TestGenerateRowWithDateRanges(t *testing.T) { function TestGenerateRowWithEnum (line 285) | func TestGenerateRowWithEnum(t *testing.T) { FILE: pkg/fakedata/completion.go constant bashTemplate (line 10) | bashTemplate = ` constant zshTemplate (line 26) | zshTemplate = ` constant fishTemplate (line 35) | fishTemplate = "complete -c fakedata -a '%s'" function getTemplate (line 37) | func getTemplate(shell string) (string, error) { function GetCompletionFunc (line 52) | func GetCompletionFunc(shell string) (string, error) { FILE: pkg/fakedata/completion_test.go function TestPrintShellCompletionFunction (line 9) | func TestPrintShellCompletionFunction(t *testing.T) { FILE: pkg/fakedata/formatter.go type Formatter (line 12) | type Formatter interface type ColumnFormatter (line 17) | type ColumnFormatter struct method Format (line 31) | func (f *ColumnFormatter) Format(columns Columns, values []string) str... type SQLFormatter (line 22) | type SQLFormatter struct method Format (line 36) | func (f *SQLFormatter) Format(columns Columns, values []string) string { type NdjsonFormatter (line 27) | type NdjsonFormatter struct method Format (line 60) | func (f *NdjsonFormatter) Format(columns Columns, values []string) str... function NewColumnFormatter (line 76) | func NewColumnFormatter(sep string) (f *ColumnFormatter) { function NewSQLFormatter (line 81) | func NewSQLFormatter(table string) (f *SQLFormatter) { function NewNdjsonFormatter (line 86) | func NewNdjsonFormatter() (f *NdjsonFormatter) { FILE: pkg/fakedata/formatter_test.go function TestColumnFormatter (line 13) | func TestColumnFormatter(t *testing.T) { function TestSQLFormatter (line 33) | func TestSQLFormatter(t *testing.T) { function TestNdjsonFormatter (line 51) | func TestNdjsonFormatter(t *testing.T) { function BenchmarkFormatters (line 68) | func BenchmarkFormatters(b *testing.B) { FILE: pkg/fakedata/generator.go type Generator (line 17) | type Generator struct method IsCustom (line 30) | func (g Generator) IsCustom() bool { type Generators (line 26) | type Generators method WithConstraints (line 47) | func (gens Generators) WithConstraints() (newGens Generators) { method Visible (line 57) | func (gens Generators) Visible() (newGens Generators) { method FindByName (line 67) | func (gens Generators) FindByName(name string) (gen *Generator) { function NewGenerators (line 35) | func NewGenerators() (gens Generators) { function withList (line 76) | func withList(list []string) func() string { function withMapValues (line 82) | func withMapValues(m map[string]string) func() string { function ipv4 (line 101) | func ipv4() string { function ipv6 (line 105) | func ipv6() string { function mac (line 109) | func mac() string { function latitude (line 113) | func latitude() string { function longitude (line 117) | func longitude() string { function double (line 121) | func double() string { function domain (line 125) | func domain() string { function date (line 129) | func date(options string) (f func() string, err error) { function integer (line 175) | func integer(options string) (func() string, error) { function file (line 211) | func file(path string) (func() string, error) { function enum (line 229) | func enum(options string) (func() string, error) { function localPhone (line 237) | func localPhone(options string) (func() string, error) { function timestamp (line 262) | func timestamp() func() string { function uuidv1 (line 269) | func uuidv1() string { function uuidv4 (line 278) | func uuidv4() string { function uuidv6 (line 287) | func uuidv6() string { function uuidv7 (line 296) | func uuidv7() string { function phoneGenerator (line 305) | func phoneGenerator(phoneCodeFunc func() string) func() string { function phone (line 316) | func phone() string { function countryPhone (line 320) | func countryPhone(countryCode string) func() string { type generatorsMap (line 324) | type generatorsMap method addGen (line 326) | func (gM generatorsMap) addGen(g Generator) { type factory (line 330) | type factory struct method extractFunc (line 334) | func (f factory) extractFunc(key, options string) (fn func() string, e... function newFactory (line 347) | func newFactory() (f factory) { FILE: pkg/fakedata/generator_test.go function BenchmarkGenerators (line 11) | func BenchmarkGenerators(b *testing.B) { function BenchmarkEnum (line 25) | func BenchmarkEnum(b *testing.B) { function BenchmarkInt (line 41) | func BenchmarkInt(b *testing.B) { function BenchmarkPhoneLocal (line 57) | func BenchmarkPhoneLocal(b *testing.B) { function BenchmarkFile (line 77) | func BenchmarkFile(b *testing.B) { FILE: pkg/fakedata/template.go type templateFactory (line 15) | type templateFactory struct method getFunctions (line 23) | func (tf templateFactory) getFunctions() template.FuncMap { function newTemplateFactory (line 19) | func newTemplateFactory() *templateFactory { function ExecuteTemplate (line 94) | func ExecuteTemplate(tmpl string, n int, streamMode bool) (err error) { FILE: testutil/diff.go function Diff (line 5) | func Diff(expected, actual interface{}) []string { FILE: testutil/test_file.go type TestFile (line 10) | type TestFile struct method Path (line 24) | func (tf *TestFile) Path() string { method Write (line 34) | func (tf *TestFile) Write(content string) { method AsFile (line 42) | func (tf *TestFile) AsFile() *os.File { method Load (line 51) | func (tf *TestFile) Load() string { function NewFixture (line 16) | func NewFixture(t *testing.T, name string) *TestFile { function NewGoldenFile (line 20) | func NewGoldenFile(t *testing.T, name string) *TestFile {