Documentation ¶
Index ¶
- Constants
- func CopyFile(fullFilePath, destFilePath string) error
- func FileExists(filePath string) bool
- func FileExistsOrFail(filePath string)
- func GetCurrentPath() (string, error)
- func IsDirectory(path string) (bool, error)
- func JoinPath(parts ...string) string
- func MkDir(dirPath string) error
- func RTrimDirPath(inputDir string) string
- func ReadCsvFile(filePath string, lineParser func(int, []string) error, lineSep rune, ...) (err error)
- func ReadFile(filePath string) ([]byte, error)
- func ReadFileString(fullFilePath string) (string, error)
- func ReadFileStringSecure(fullFilePath string) string
- func ReadFilesInDirectory(dirPath string) ([]os.FileInfo, error)
- func ReadTextFile(filePath string, lineParser func(line string, lineNumber int) error) error
- func RmFile(filePath string) bool
- func TouchFile(fullFilePath string) error
- func WriteFileString(fullFilePath, data string, perm os.FileMode) error
Constants ¶
View Source
const DS = string(os.PathSeparator)
Variables ¶
This section is empty.
Functions ¶
func FileExists ¶
func FileExistsOrFail ¶
func FileExistsOrFail(filePath string)
func GetCurrentPath ¶
func IsDirectory ¶
func RTrimDirPath ¶
func ReadCsvFile ¶
func ReadFileString ¶ added in v1.3.7
func ReadFileStringSecure ¶ added in v1.3.7
func ReadTextFile ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.