Documentation ¶
Index ¶
- func FirstLower(s string) string
- func FirstUpper(s string) string
- func GetDbNameForUrl(dns string) (dbName string, err error)
- func IndexOf(data []string, v string) int
- func IsEmpty(s string) bool
- func NewTemplate(name, content, savePath, filename string, ...)
- func PathExists(path string) (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetDbNameForUrl ¶
func NewTemplate ¶
func NewTemplate(name, content, savePath, filename string, placeholder map[interface{}]interface{})
NewTemplate 创建模板 param name 模板名称 param content 模板内容 param savePath 保存的路径 param filename 文件名称 param map placeholder 占位符 { "key":"value" } => {{ .key }}
func PathExists ¶
PathExists 判断一个文件或文件夹是否存在 输入文件路径,根据返回的bool值来判断文件或文件夹是否存在
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.