Documentation
¶
Index ¶
Constants ¶
View Source
const ( Tag = "deepcopy" Cloneable = "@copyable" // 标记要不要实现Copy PtrRecv = "@ptrrecv" // 标记是否是指针接受 ExportedOnly = "@exportedonly" // 标记是否只导出 Name = "@name" // 标记函数名称 DefaultFuncName = "DeepCopy" // 默认函数名称 )
Variables ¶
This section is empty.
Functions ¶
func ParseGeneratorOptions ¶
func ParseGeneratorOptions(p *packages.Package) [][]GeneratorOption
ParseGeneratorOptions 从包中解析生成器选项
Types ¶
type Generator ¶
type Generator struct {
// contains filtered or unexported fields
}
func NewGenerator ¶
func (Generator) Generate ¶
func (g Generator) Generate(out io.Writer, p *packages.Package, group []GeneratorOption, all [][]GeneratorOption) error
Click to show internal directories.
Click to hide internal directories.