codegen

package
v1.2.8 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manifest

type Manifest struct {
	// codegen destination file path
	// +required
	DstFilePath string

	// DstPkg must not be same with InstanceOf pkg
	// DstPkg must same with DstFilePath pkg (or suffix word)
	// +optional
	DstPkg string

	// InstanceOf only allow pointer type (Addressable type: any, func, pointer, map, slice)
	// +required
	InstanceOf any

	// +optional
	UnExportGlobalVarName string

	// +optional
	GenImport bool

	// +optional
	GenVar bool
	// contains filtered or unexported fields
}

Manifest for all `func` of a `struct` codegen to `pkg` level func with a `pkg` level global var

func (*Manifest) Do

func (g *Manifest) Do()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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