gen2

package
v0.0.0-...-6ea5f18 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ComInfo

type ComInfo struct {
	Struct        *model.Struct
	InstanceField *model.StructField

	ProxyStructName    string
	InstanceStructName string
	FactoryStructName  string // 'comFactoryForXXX'

	ComID            string
	ComClass         string
	ComAliases       string
	ComScope         string
	ComInitMethod    string
	ComDestroyMethod string
}

type FieldInfo

type FieldInfo struct {
	Field        *model.StructField
	Owner        *ComInfo
	SelectorExpr string
	SelectorName string
	SetterName   string
	GetterName   string
}

type Template

type Template interface {
	Build(source *model.GoSource) (string, error)
}

Template Gen2-模板

func NewTemplate

func NewTemplate(res collection.Resources, basepath string) Template

NewTemplate 创建 Gen1-模板

Jump to

Keyboard shortcuts

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