generator

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTemplateGenerator

func NewTemplateGenerator(c *Config) (*templateGenerator, error)

Types

type Config

type Config struct {
	Logf     func(format string, args ...any)
	Provider WriterProvider
}

type Generator

type Generator interface {
	Generate(*codegen.Task) error
}

type WriterProvider

type WriterProvider interface {
	Provide(name string) (io.WriteCloser, error)
}

Jump to

Keyboard shortcuts

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