Documentation ¶
Index ¶
- func AbPath(file string) string
- func Execute(param *TableWrapper, tpl string) (string, error)
- func GenDao(dir, table string, tpl map[string]string) error
- func GenFile(kind string, baseParam *BaseParam, param *TableWrapper, format string) error
- func GenParam(dir, project, table, tableName string) (*BaseParam, *TableWrapper)
- func GetCurrentAbPath() string
- func GetCurrentAbPathByCaller(skip int) string
- func GetCurrentAbPathByExecutable() string
- func LowerCameName(s string) string
- func RegController(fst *token.FileSet, f *ast.File, table string, regPath string) error
- func RegRouter(fst *token.FileSet, f *ast.File, parentName, table, regPath string) error
- func RegService(fst *token.FileSet, f *ast.File, table string, regPath string) error
- func Strikethrough(s string) string
- func UpperCamelName(s string) string
- type BaseParam
- type Conf
- type TableWrapper
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenFile ¶
func GenFile(kind string, baseParam *BaseParam, param *TableWrapper, format string) error
func GenParam ¶
func GenParam(dir, project, table, tableName string) (*BaseParam, *TableWrapper)
func GetCurrentAbPathByCaller ¶
GetCurrentAbPathByCaller 获取当前执行文件绝对路径(go run)
func GetCurrentAbPathByExecutable ¶
func GetCurrentAbPathByExecutable() string
GetCurrentAbPathByExecutable 获取当前执行文件绝对路径
func RegController ¶
func RegService ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.