# Functions
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
CamelString*
* 蛇形转驼峰
* @description xx_yy to XxYx xx_y_y to XxYY
* @date 2020/7/30
* @param s要转换的字符串
* @return string
**/.
CheckExist 检查文件是否存在,如果返回 false ,则表示文件或目录不存在,如果返回 true,则表示文件或目录存在。.
No description provided by the author
No description provided by the author
CreateDir 批量创建文件夹 @param: dirs ...string @return: err error.
No description provided by the author
No description provided by the author
EscapeGolangKeyword escapes the golang keywords.
FileExist 判断文件是否存在.
No description provided by the author
No description provided by the author
FmtCode 格式化代码.
No description provided by the author
Index returns the index where the item equal,it will return -1 if mismatched.
IsNotExistMkDir 检查文件夹是否存在 如果不存在则新建文件夹.
LeftLower 首字母转小写.
LeftUpper 首字母转大写.
No description provided by the author
MkDir 新建文件夹.
PathExists 文件目录是否存在 @param: path string @return: bool, error.
No description provided by the author
SafeString converts the input string into a safe naming style in golang.
No description provided by the author
SnakeString*
* 驼峰转蛇形 snake string
* @description XxYy to xx_yy , XxYY to xx_y_y
* @date 2020/7/30
* @param s 需要转换的字符串
* @return string
**/.
Title returns a string value with s[0] which has been convert into upper case that there are not empty input text.
TrimNewLine trims \r and \n chars.
No description provided by the author
Untitle returns a string value with s[0] which has been convert into lower case that there are not empty input text.
No description provided by the author
With returns a instance of DefaultTemplate.
No description provided by the author
# Constants
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Structs
DefaultTemplate is a tool to provides the text/template operations.