generator

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const FallbackType = "any"

Variables

This section is empty.

Functions

func Generate

func Generate(l *slog.Logger, ctpl *contemplate.Contemplate, opts ...Option) (map[string]*code.File, error)

Types

type Option

type Option func(*Options)

type Options

type Options struct {
	PackageNameReplacer *strings.Replacer
}

type Package

type Package struct {
	Filename string
	// contains filtered or unexported fields
}

func NewPackage

func NewPackage(l *slog.Logger, goctpl *contemplate.Contemplate, pkg *contemplate.Package, pkgNameReplacer *strings.Replacer) *Package

func (*Package) Code

func (p *Package) Code() *code.File

func (*Package) Generate

func (p *Package) Generate() error

func (*Package) IsSesamyEvent

func (p *Package) IsSesamyEvent(expr ast.Expr) bool

Jump to

Keyboard shortcuts

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