Documentation
¶
Index ¶
- func Combine(path1 string, path2 ...string) string
- func Copy(a, b string, opts ...copy.Options) error
- func CopyAndRename(files []string, oldPath, newPath, oldName, newName string) error
- func DeleteDirectory(fileName string) error
- func Exists(fileName string) bool
- func FromCwd(path1 ...string) (string, error)
- func GetDirectories(filePath string) []string
- func GetDirectoryName(fileName string) string
- func GetFileExtension(fileName string) string
- func GetFileName(fileName string) string
- func GetFiles(filePath string) []string
- func GetRelativePath(directories ...string) string
- func IsEmpty(dir string) (bool, error)
- func OverwriteFile(file *os.File) error
- func ReadAllLines(file *os.File) ([]string, error)
- func ReadAllStringLines(input string) ([]string, error)
- func ReadFile(fileName string) ([]byte, error)
- func RemoveEmptyDirectories(root string) error
- func Scan(scanner *bufio.Scanner) ([]string, error)
- func SortFileNames(files []string) []string
- func TrimPath(input string) string
- func WriteFile(fileName string, data []byte, perm fs.FileMode) error
- func WriteToFile(file *os.File, entries []string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CopyAndRename ¶
func DeleteDirectory ¶
func GetDirectories ¶
func GetDirectoryName ¶
func GetFileExtension ¶
func GetFileName ¶
func GetRelativePath ¶
func OverwriteFile ¶
func ReadAllStringLines ¶
func RemoveEmptyDirectories ¶
func SortFileNames ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.