Documentation
¶
Overview ¶
Package util provides utility functions for working with files and directories.
Index ¶
- func CreateSpaces(n int) string
- func ListFilesInDir(dir string) ([]string, error)
- func ListGlob(glob string) ([]string, error)
- func MD5Hash(text string) string
- func MD5HashByte(text []byte) string
- func MkdirPAndWriteFile(filePath, content string) error
- func ReadFileP(filepath string) string
- func ReplaceExt(file string, ext string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateSpaces ¶
func ListFilesInDir ¶
func MD5HashByte ¶ added in v0.7.21
func MkdirPAndWriteFile ¶ added in v0.7.14
MkdirPAndWriteFile writes the edited content to the file
func ReadFileP ¶
ReadFileP is a convenience function that calls ReadFile and panics if an error occurs.
func ReplaceExt ¶ added in v0.8.9
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.