common

package
v2.0.0-beta.64 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2025 License: MPL-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FirstUpper

func FirstUpper(s string) string

FirstUpper returns a string with the first character as upper case.

Types

type Destination

type Destination interface {
	CreateDirectories() error
	Write() error
	WriteBytes(body []byte) error
	WriteTemplate(templateName, templateBody string, templateData any, funcMaps ...template.FuncMap) error
	WriteTemplateSet(templates *template.Template, templateData any) error
}

type Generator

type Generator struct{}

func NewGenerator

func NewGenerator() *Generator

func (*Generator) Errorf

func (g *Generator) Errorf(format string, a ...any)

func (*Generator) Fatalf

func (g *Generator) Fatalf(format string, a ...any)

func (*Generator) Infof

func (g *Generator) Infof(format string, a ...any)

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 ...any)

Jump to

Keyboard shortcuts

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