generator

package
v0.1.18 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Generate

func Generate(opts *Options) error

Generate generates code

Types

type Options

type Options struct {
	Name       string
	Type       string // core / business / plugin / custom
	CustomDir  string // Custom Directory, if Type is custom
	OutputPath string // Generated code output path
	ModuleName string // Module name
	UseMongo   bool
	UseEnt     bool
	UseGorm    bool
	WithCmd    bool
	WithTest   bool
	Standalone bool
	Group      string
}

Options defines generation options

func DefaultOptions

func DefaultOptions() *Options

DefaultOptions returns default options

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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