generator

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Builder added in v0.2.0

type Builder interface {
	Initiate(map[string]string) error
	Build(...string) string
	Validate() error
}

func BuilderFactory added in v0.2.0

func BuilderFactory(dt TYPE) (Builder, error)

type Column

type Column struct {
	Name     string
	Field    Field
	Kwargs   map[string]string
	Position int
	Builder  Builder
}

type Document

type Document struct {
	Name       string
	Rows       int
	Columns    []Column
	WithHeader bool
}

func NewDocument

func NewDocument(name string) Document

type Field

type Field struct {
	Type TYPE
}

type Generator

type Generator struct {
	// contains filtered or unexported fields
}

func NewGenerator

func NewGenerator(documents []Document) *Generator

func (Generator) Generate

func (g Generator) Generate() error

type TYPE

type TYPE int
const (
	INT TYPE = iota
	FLOAT
	STRING
	PERSONAL
	DATE
	SEQ
)

Jump to

Keyboard shortcuts

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