Documentation
¶
Index ¶
- func DoLine(sw *generator.SnippetWriter, indent, format string, args any)
- func IgnoreKeys(keys ...string) string
- func NewOverlayGenerator(outputFilename, targetPackage string) generator.Generator
- func NewOverlayTestGenerator(outputFilename, targetPackage string) generator.Generator
- func Panic(msg string, args ...any)
- type AnnotateType
- type Params
- type Refer
- type StructField
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IgnoreKeys ¶
func NewOverlayGenerator ¶
func NewOverlayTestGenerator ¶
Types ¶
type AnnotateType ¶
type AnnotateType int
const ( None AnnotateType = iota AtomicList SetList MapList AtomicMap GranularMap AtomicStruct GranularStruct )
func (AnnotateType) FuncPrefix ¶
func (at AnnotateType) FuncPrefix() string
type Params ¶
type Params interface {
Name() string
// Type returns the type dst and src
Type() *types.Type
// Dst returns the variable name of dst
Dst() string
// Src returns the variable name of src
Src() string
// AnnotateType returns the type from comments
AnnotateType() AnnotateType
// Keys returns additional keys of specified annotate type
Keys() []string
// some types need check nil before get address
CheckNil()
Member() *types.Member
Members() []Params
Pointer() Params
Slice(dst, src string) Params
Map() Params
Underlying() Params
}
Params defines the messages of overlay params
type StructField ¶
Click to show internal directories.
Click to hide internal directories.