Documentation ¶
Index ¶
- Variables
- func CamelizeStr(s string, upperCase bool) string
- func CleanUpGenFiles(dir string) error
- func FileExists(filePath string) (bool, error)
- func FirstCharacter(s string) string
- func FirstLowerWord(s string) string
- func GetDbNameFromDSN(dsn string) (string, error)
- func InSlice(items []string, item string) bool
- func MkdirPathIfNotExist(dirPath string) error
- func RemoveFile(filePath string) error
- func RemovePrefix(tableName string, pre string) string
- func SaveFile(dirPath, fileName string, text []byte) error
- func StrToLower(s string) string
Constants ¶
This section is empty.
Variables ¶
View Source
var DSNError = errors.New("dsn string error")
Functions ¶
func CamelizeStr ¶
CamelizeStr
@Description: 转换驼峰格式 @param s 字符串 @param upperCase true=首字母大写 @return string
func SaveFile ¶
SaveFile
@Description: 保存文件 @param dirPath 路径 @param fileName 文件名 @param text 内容 @return error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.