internal

package
v0.1.12 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Logger is the logger for the package.
	Logger *log.Logger

	// Generator is the generator for the package.
	Generator *ggen.CodeGenerator[*GenData]
)
View Source
var (
	// TypeNameFlag is the flag for the type name.
	TypeNameFlag *string
)

Functions

func Parse

func Parse() (string, error)

Types

type GenData

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

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

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

	// Fields is the list of fields.
	Fields map[string]string

	// IteratorName is the name of the iterator.
	IteratorName string

	// IteratorSig is the signature of the iterator.
	IteratorSig string

	// ParamList is the list of parameters.
	ParamList string

	// AssignmentMap is the map of assignments.
	AssignmentMap map[string]string

	// Generics is the list of generics.
	Generics string
}

GenData is the data for the generator.

func (*GenData) SetPackageName

func (g *GenData) SetPackageName(pkg_name string)

SetPackageName implements the ggen.Generater interface.

Jump to

Keyboard shortcuts

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