Documentation ¶
Index ¶
- func ClearDir(dir string) error
- func ConvertToJSON(val interface{}) (string, error)
- func DeleteFile(path string) error
- func DirExists(path string) bool
- func EnsureDir(dirName string, mode int) (bool, error)
- func EnsureTrailingSlash(dir string) string
- func FileExists(path string) bool
- func FilterFiles(files, filters []string) []string
- func InArray(val interface{}, array interface{}) bool
- func ListFiles(basePath string) (map[string]File, error)
- func PathExists(path string) bool
- func ReadFile(path string) (string, error)
- func RemoveStartingSlash(dir string) string
- func RemoveTrailingSlash(dir string) string
- func StoreFile(path, content string) error
- func Unset(a []string, i int) []string
- type File
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertToJSON ¶
ConvertToJSON convert object to json
func EnsureTrailingSlash ¶
EnsureTrailingSlash ensure there is a trailing slash
func FileExists ¶
FileExists reports whether the named file exists
func FilterFiles ¶
FilterFiles filters files list based on specific sub-strings
func InArray ¶
func InArray(val interface{}, array interface{}) bool
InArray check if value is on array
func RemoveStartingSlash ¶
RemoveStartingSlash removes any starting slash
func RemoveTrailingSlash ¶
RemoveTrailingSlash removes any trailing slash
Types ¶
Click to show internal directories.
Click to hide internal directories.