Documentation
¶
Index ¶
- Constants
- func CheckError(err error) bool
- func FileSize(path string, mkdir bool) (int64, bool)
- func GetAbsFile(fname string) string
- func ToCamel(name string) string
- func ToPlural(name string) string
- func ToSingular(name string) string
- func ToSnake(name string) string
- func TrimTail(lines string) string
- func WrapWith(name, left, right string) string
Constants ¶
View Source
const DIR_MODE = 0777
Variables ¶
This section is empty.
Functions ¶
func FileSize ¶
detect if file exists -1, false 不合法的路径 0, false 路径不存在 -1, true 存在文件夹 >=0, true 文件并存在
func ToSingular ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.