generator

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2026 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EnumConstraint

type EnumConstraint interface {
	string | constraints.Integer
}

EnumConstraint 定义枚举类型支持的约束

type Generator

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

func (*Generator) Format

func (g *Generator) Format() []byte

func (*Generator) Generate

func (g *Generator) Generate(typeName string)

func (*Generator) GetPackageName

func (g *Generator) GetPackageName() string

func (*Generator) ParsePackage

func (g *Generator) ParsePackage(patterns []string)

func (*Generator) Printf

func (g *Generator) Printf(format string, args ...interface{})

type Package

type Package struct {
	Name string
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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