Documentation ¶
Index ¶
- func CamelCase(s string) string
- func Fatal(err error, title string)
- func GenFile(tplContent string, dest string, data map[string]interface{})
- func GetDcValueByKeys(source string, keysParam ...string) string
- func GetFileNameByUri(uri string) (res string)
- func GetFilePath(relativePath string) string
- func GetLastSymBolAfterStr(source string, symbol string) (res string)
- 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 LoadYamlFile(relativePath string) []byte
- func MakeDirByPathIfNotExist(path 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
- func WriteFileIfNotExistsCon(absolute string, con string) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetDcValueByKeys ¶
func GetFileNameByUri ¶
func GetLastSymBolAfterStr ¶
func GetWorkDir ¶
func GetWorkDir() string
func IsFileExist ¶
func LoadResource ¶
遍历文件夹,把静态文件读取出来 map["SERVICE_TPL"]=文件里面的内
func LoadYamlFile ¶
func NewTplFunction ¶
func WriteFileIfNotExistsCon ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.