generator

package
v0.0.0-...-d257840 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 20, 2024 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Overview

Copyright © 2024 NAME HERE <EMAIL ADDRESS>

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Generate

func Generate(runID string, n, batchSize int, generator Generator) (string, error)

Types

type Call

type Call struct {
}

func (Call) CSVColumnMapping

func (c Call) CSVColumnMapping() string

func (Call) CSVHeaders

func (c Call) CSVHeaders() string

func (Call) FakeRecord

func (c Call) FakeRecord() string

func (Call) Table

func (c Call) Table() string

type Generator

type Generator interface {
	Table() string
	CSVHeaders() string
	CSVColumnMapping() string
	FakeRecord() string
}

type User

type User struct {
	FirstName   string `db:"first_name"`
	LastName    string `db:"last_name"`
	Email       string `db:"email"`
	Age         int    `db:"age"`
	Description string `db:"description"`
}

func (User) CSVColumnMapping

func (u User) CSVColumnMapping() string

func (User) CSVHeaders

func (u User) CSVHeaders() string

func (User) FakeRecord

func (u User) FakeRecord() string

func (User) Table

func (u User) Table() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL