internal

package
v0.1.13 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	OutputLocFlag *gcgen.OutputLocVal

	TypeListFlag *gcgen.TypeListVal

	GenericsFlag *gcgen.GenericsSignVal

	TypeNameFlag *string
)
View Source
var (
	// Logger is the logger to use.
	Logger *log.Logger

	// Generator is the generator to use.
	Generator *gcgen.CodeGenerator[*GenData]
)

Functions

func Parse

func Parse() (string, error)

Types

type GenData

type GenData struct {
	// PackageName is the package name of the generated code.
	PackageName string

	// TypeName is the name of the generated type.
	TypeName string

	// TypeSig is the signature of the generated type.
	TypeSig string

	// GenericsSign is the signature of the generics.
	GenericsSign string

	// CellType is the type of each table's cell.
	CellType string

	// ZeroValue is the zero value of the cell type.
	ZeroValue string
}

GenData is the data struct for the generator.

func (*GenData) SetPackageName

func (g *GenData) SetPackageName(pkg_name string) bool

SetPackageName implements the go_generator.Generater interface.

Jump to

Keyboard shortcuts

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