generators

package
v0.0.0-...-0d6c075 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2023 License: Apache-2.0 Imports: 10 Imported by: 1

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 IsComparable

func IsComparable(t *types.Type) bool

IsAssignable returns whether the type is deep-assignable. For example, slices and maps and pointers are shallow copies, but ints and strings are complete.

func NameSystems

func NameSystems() namer.NameSystems

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

func NewGenDeepEqual

func NewGenDeepEqual(sanitizedName, targetPackage string, boundingDirs []string, allTypes, registerTypes bool) generator.Generator

func Packages

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

Types

type CustomArgs

type CustomArgs struct {
	BoundingDirs []string // Only deal with types rooted under these dirs.
}

CustomArgs is used tby the go2idl framework to pass args specific to this generator.

Jump to

Keyboard shortcuts

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