generator

package
v0.1.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: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Column

type Column struct {
	Name     string
	Field    Field
	Position int
}

type Document

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

func NewDocument

func NewDocument(name string) Document

type Field

type Field struct {
	Type   TYPE
	Option []OPTION
}

type Generator

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

func NewGenerator

func NewGenerator(documents []Document) *Generator

func (Generator) Generate

func (g Generator) Generate()

type OPTION

type OPTION int
const (
	SEQ OPTION = iota
	UNIQUE
	NAME
	LAST_NAME
	ADDRESS
	SENTENCE
	COMPANY
	NIL
)

type TYPE

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

Jump to

Keyboard shortcuts

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