generator

package
v1.5.1 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2025 License: Apache-2.0 Imports: 6 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.4.0

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

Command holds configuration for generating a Go implementation of an interface, including destination, naming, and output structure.

func NewCommand added in v1.4.0

func NewCommand(
	dst string,
	interfaceName string,
	implementationName string,
	implementationPackageName string,
	singleFile bool,
) *Command

NewCommand creates a new Command with the given parameters. This struct is typically passed into a code generator to drive its behavior.

func (*Command) Execute added in v1.4.0

func (cmd *Command) Execute(pkg model.Package) ([]model.File, error)

Execute creates basic implementations for all interfaces in the provided package. If a specific interface name is configured, only that one is processed.

Jump to

Keyboard shortcuts

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