common

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2024 License: MPL-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Destination

type Destination interface {
	CreateDirectories() error
	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) UI

func (g *Generator) UI() cli.Ui

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