generators

package
v0.0.0-...-84d9a14 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExcelGenerator

type ExcelGenerator struct {
	Style Style
}

func NewExcelGenerator

func NewExcelGenerator(*Style) *ExcelGenerator

func (*ExcelGenerator) Generate

func (eg *ExcelGenerator) Generate(interventions []models.Intervention) error

type Generator

type Generator interface {
	Generate([]models.Intervention) error
}

type MarkdownData

type MarkdownData struct {
	Title           string
	Subtitle        string
	Workers         []WorkerMd
	Materials       []Material
	Description     []string
	Notes           string
	LastWorkerIndex int
}

type MarkdownGenerator

type MarkdownGenerator struct {
}

func NewMarkdownGenerator

func NewMarkdownGenerator() *MarkdownGenerator

func (*MarkdownGenerator) Generate

func (md *MarkdownGenerator) Generate(interventions []models.Intervention) error

Generate a markdown file

type Material

type Material struct {
	Material string
	Umeasure string
	Quantity float32
}

type Style

type Style struct {
	Font            string
	Fill            string
	TextColor       string
	FontH1Dimension int
	FontH2Dimension int
	FontH3Dimension int
	PrimaryColor    string
	SecondaryColor  string
}

type WorkerMd

type WorkerMd struct {
	Name     string
	Hours    float32
	HasSlash bool
}

Jump to

Keyboard shortcuts

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