common

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2023 License: MPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadAllCSVData

func ReadAllCSVData(filename string) ([][]string, error)

Types

type Args

type Args struct {
	Positional []string
	Keyword    map[string]string
}

Args represents an argument list of the form: postional0, keywordA=valueA, positional1, keywordB=valueB

func ParseArgs

func ParseArgs(s string) Args

type Destination

type Destination interface {
	Write() error
	WriteBytes(body []byte) error
	WriteTemplate(templateName, templateBody string, templateData any) error
}

type Generator

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

func NewGenerator

func NewGenerator() *Generator

func (*Generator) Errorf

func (g *Generator) Errorf(format string, a ...interface{})

func (*Generator) Fatalf

func (g *Generator) Fatalf(format string, a ...interface{})

func (*Generator) Infof

func (g *Generator) Infof(format string, a ...interface{})

func (*Generator) NewGoFileDestination

func (g *Generator) NewGoFileDestination(filename string) Destination

func (*Generator) NewUnformattedFileDestination

func (g *Generator) NewUnformattedFileDestination(filename string) Destination

func (*Generator) Warnf

func (g *Generator) Warnf(format string, a ...interface{})

Jump to

Keyboard shortcuts

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