gen

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var TypesGoTpl = `` /* 130-byte string literal not displayed */

Functions

func ParseTemplate

func ParseTemplate(data interface{}, tplT []byte) ([]byte, error)

ParseTemplate template

Types

type GeneratedFile

type GeneratedFile struct {
	Path    string
	Content bytes.Buffer
	Skip    bool
}

type Generator added in v0.2.0

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

func NewGenerator added in v0.2.0

func NewGenerator(p *plugin.Plugin, ops ...Opt) *Generator

func (*Generator) Generate added in v0.2.0

func (g *Generator) Generate() ([]*GeneratedFile, error)

type Opt added in v0.2.0

type Opt func(ops *Generator)

func WithFilenameTemplate added in v0.2.0

func WithFilenameTemplate(filenameTemplate string) Opt

Jump to

Keyboard shortcuts

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