generates

package
v1.2.85 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2024 License: Apache-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 Command added in v1.2.0

type Command interface {
	Execute(ctx context.Context, args ...string) (err error)
}

func New

func New(options ...Option) (cmd Command)

type Generator

type Generator interface {
	Generate(ctx context.Context, mod *sources.Module) (err error)
}

type Option added in v1.2.0

type Option func(options *Options)

func WithAnnotations added in v1.2.0

func WithAnnotations(annotations ...modules.FnAnnotationCodeWriter) Option

func WithBuiltinTypes added in v1.2.0

func WithBuiltinTypes(builtinTypes ...*sources.Type) Option

func WithGenerator added in v1.2.0

func WithGenerator(generator Generator) Option

func WithModulesDir added in v1.2.0

func WithModulesDir(dir string) Option

func WithName added in v1.2.0

func WithName(name string) Option

type Options added in v1.2.0

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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