Documentation ¶
Index ¶
- Variables
- func ChangeValTagForUpdate(tag string) string
- func CheckPathIfNotExist(path string) bool
- func CreateDirIfNotExist(dir string) error
- func GetOnlyFilename(path string) string
- func LowerToUpperCamel(s string) string
- func OpenBrowser(url string) error
- func ReflectAccess(a ast.Expr) string
- func ReplaceTime2TimesISOTime(str string) string
- func SQLStr2GoStr(str string) string
- func SendFailResp(c *gin.Context, message string)
- func SendResp(c *gin.Context, httpCode, code int, message string, data interface{})
- func SendSuccessResp(c *gin.Context, message string)
- func UnderlineStr2Strikethrough(str string) string
- func UpperToLowerCamel(s string) string
- type Response
Constants ¶
This section is empty.
Variables ¶
View Source
var SpecialMapper = core.GonicMapper{}
SpecialMapper 特殊映射表
Functions ¶
func ChangeValTagForUpdate ¶
ChangeValTagForUpdate 因为修改的时候字段均不是必填项
func CheckPathIfNotExist ¶
CheckPathIfNotExist return true if file exist
func CreateDirIfNotExist ¶
CreateDirIfNotExist create dir recursion
func GetOnlyFilename ¶
GetOnlyFilename return a filename without extension
func ReflectAccess ¶ added in v1.2.1
ReflectAccess 解析 ast 中对应类型的内容
func ReplaceTime2TimesISOTime ¶
ReplaceTime2TimesISOTime 替换时间time.Time -> times.ISOTime
func SQLStr2GoStr ¶
SQLStr2GoStr 数据库字段、表名转换为大驼峰的golang命名,并且会替换一些特殊的映射规则如:ID
func UnderlineStr2Strikethrough ¶
UnderlineStr2Strikethrough 将下划线字符串转换为中划线
Types ¶
Click to show internal directories.
Click to hide internal directories.