generators

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultNameSystem

func DefaultNameSystem() string

DefaultNameSystem returns the default name system for ordering the types to be processed by the generators in this package.

func GetTargets

func GetTargets(context *generator.Context, args *args.Args) []generator.Target

func NameSystems

func NameSystems() namer.NameSystems

NameSystems returns the name system used by the generators in this package.

func NewGenDeepCopy

func NewGenDeepCopy(outputFilename, targetPackage string, boundingDirs []string, allTypes, registerTypes, usePool bool) generator.Generator

Types

type GenPoolRawNamer

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

func NewGenPoolRawNamer

func NewGenPoolRawNamer(pkg string, tracker namer.ImportTracker, slice bool) *GenPoolRawNamer

func (*GenPoolRawNamer) Name

func (p *GenPoolRawNamer) Name(t *types.Type) string

type KANamer

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

func (*KANamer) Name

func (k *KANamer) Name(t *types.Type) string

type PoolRawNamer

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

func NewPoolRawNamer

func NewPoolRawNamer(pkg string, tracker namer.ImportTracker, slice bool, m map[*types.Type]int) *PoolRawNamer

func (*PoolRawNamer) Name

func (p *PoolRawNamer) Name(t *types.Type) string

type ResetPoolRawNamer

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

func NewResetPoolRawNamer

func NewResetPoolRawNamer(pkg string, tracker namer.ImportTracker, slice bool) *ResetPoolRawNamer

func (*ResetPoolRawNamer) Name

func (p *ResetPoolRawNamer) Name(t *types.Type) string

type TypeSlice

type TypeSlice []*types.Type

func (TypeSlice) Len

func (s TypeSlice) Len() int

func (TypeSlice) Less

func (s TypeSlice) Less(i, j int) bool

func (TypeSlice) Sort

func (s TypeSlice) Sort()

func (TypeSlice) Swap

func (s TypeSlice) Swap(i, j int)

Jump to

Keyboard shortcuts

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