generator

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Name          string
	Route         string
	Force         bool
	OpenAPIFile   string
	GenerateTests bool
	PackagePath   string
	RepoRoot      string
	GenerateAll   bool
}

Config 生成器配置

type Generator

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

Generator 代码生成器

func NewGenerator

func NewGenerator(config *Config) *Generator

NewGenerator 创建新的代码生成器

func (*Generator) Generate

func (g *Generator) Generate() error

Generate 执行代码生成

Jump to

Keyboard shortcuts

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