generators

package
v0.0.0-...-392fa8f Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2022 License: Apache-2.0 Imports: 14 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 NameSystems

func NameSystems() namer.NameSystems

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

func NewGenOption

func NewGenOption(build *parser.Builder, sanitizedName, targetPackage string, boundingDirs []string, genTypes GenTypes, sourcePath string) generator.Generator

func Packages

func Packages(context *generator.Context, arguments *args.GeneratorArgs) generator.Packages

Types

type GenType

type GenType struct {
	*types.Type
	AllowFields  []string
	OptionName   string
	OptionSuffix string
}

type GenTypes

type GenTypes struct {
	Types     []*GenType
	Functions []string
}

func NewGenTypes

func NewGenTypes(pkg *types.Package) (pkgEnabled bool, genTypes GenTypes)

Jump to

Keyboard shortcuts

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