Documentation ¶
Index ¶
- func AbsPath(p string) (string, apperror.Error)
- func BuildFileMD5Hash(path string) (string, apperror.Error)
- func Canonicalize(str string) string
- func CopyFile(sourcePath, targetPath string) apperror.Error
- func FileExists(path string) (bool, apperror.Error)
- func GetMapDictKey(rawData interface{}, key string) (map[string]interface{}, bool)
- func GetMapFloat64Key(rawData interface{}, key string) (float64, bool)
- func GetMapKey(rawData interface{}, key string) (interface{}, bool)
- func GetMapStringKey(rawData interface{}, key string) string
- func InterfaceToModelSlice(items []interface{}) []kit.Model
- func ListFiles(path string) ([]string, apperror.Error)
- func ReadFile(path string) ([]byte, apperror.Error)
- func StrIn(haystack []string, needle string) bool
- func UUIdv4() string
- func WriteFile(p string, content []byte, createDir bool) apperror.Error
- func WriteTmpFile(content []byte, name string) (string, apperror.Error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildFileMD5Hash ¶
func Canonicalize ¶
func FileExists ¶
func GetMapDictKey ¶
func GetMapFloat64Key ¶
func GetMapStringKey ¶
func InterfaceToModelSlice ¶
func WriteTmpFile ¶
Write contents to a tmp file and return the path to the file.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.