Documentation ¶
Index ¶
- func CamelCase(s string) string
- func GenFile(tplContent string, dest string, data map[string]interface{})
- func GetWorkDir() string
- func Gzip(str string) string
- func IsFileExist(filepath string) bool
- func IsFilePathExist(filepath string) bool
- func LoadResource(dir string) map[string]string
- func NewTplFunction() template.FuncMap
- func ReadFile(f string) []byte
- func SnakeCase(s string) string
- func Ucfirst(str string) string
- func UnGzip(str string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsFileExist ¶
func LoadResource ¶
LoadResource 遍历文件夹,把静态文件读取出来 map["SERVICE_TPL"]=文件里面的内容
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.