generator

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package generator produces Go source code from parsed type information.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Generate

func Generate(ti *parser.TypeInfo, opts Options) (string, error)

Generate runs all enabled generators and returns formatted Go source.

Types

type Options

type Options struct {
	Builder  bool
	Mock     bool
	Validate bool
	Clone    bool
}

Options controls which generators are run.

func DefaultOptions

func DefaultOptions() Options

DefaultOptions returns Options with everything enabled.

Jump to

Keyboard shortcuts

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