Documentation ¶
Index ¶
- func FileNameToCamel(filename string) string
- func FindRootPkgName(dir string) (string, string, error)
- func GetFieldComment(field *ast.Field) string
- func GetMethodParams(field []*ast.Field) string
- func GetMethodResult(field []*ast.Field) string
- func GetMethodResultValues(field []*ast.Field) string
- func GetType(expr ast.Expr) string
- func GetTypeComment(decl *ast.GenDecl, typeSpec *ast.TypeSpec) string
- func GetTypeDefaultVal(expr ast.Expr) string
- func LowerFirstChar(str string) string
- func ParseTag(tag string, key string) string
- func ParseTemplate(tpl string, params ...map[string]interface{}) (string, error)
- func PkgToPath(rootPkg, rootPkgName, pkgName string) (string, error)
- func ReadDir(path string, gen func(path string) error) error
- func SwaggerName(field *ast.Field) string
- func ToCamel(str string) string
- func UpperFirstChar(str string) string
- func WriteFile(file string, data string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FileNameToCamel ¶
func FindRootPkgName ¶
FindRootPkgName 根据go.mod搜寻根包名
func GetFieldComment ¶
func GetMethodParams ¶
func GetMethodResult ¶
func GetMethodResultValues ¶
func GetTypeDefaultVal ¶
func ParseTemplate ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.