Documentation
¶
Overview ¶
Package codegen 简单的代码生成工具
Index ¶
- func Dump(path string, content []byte, mode fs.FileMode) error
- func DumpFromTemplate(path, tpl string, data any, mode fs.FileMode) error
- func DumpFromTemplateFile(path string, tplFile string, data any, mode fs.FileMode) error
- func GoDefine(t reflect.Type, m map[reflect.Type]string, unexported bool) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DumpFromTemplate ¶
DumpFromTemplate 根据模板内容生成代码
func DumpFromTemplateFile ¶
DumpFromTemplateFile 根据 tplFile 指向的模板内容生成代码
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.