Documentation ¶
Index ¶
- func Copy(source, destination string) error
- func CopyDir(src string, dst string) error
- func EachLine(path string, walkFn EachLineFunc) error
- func Exists(filepath string) bool
- func IsDir(fpath string) bool
- func IsRegular(fpath string) bool
- func IsSamePath(p1 string, p2 string) bool
- func IsSymlink(path string) bool
- func ReadLines(path string) ([]string, error)
- func Sha1Sum(fpath string) (string, error)
- type EachLineFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Copy ¶
Copy source to destination path: if destination is a directory, source will be copied in the dir with the file basename.
func EachLine ¶
func EachLine(path string, walkFn EachLineFunc) error
EachLine walks lines, calling EachLineFunc for each line of the file. All errors that arise visiting lines are filtered by callback function.
func IsSamePath ¶
IsSamePath returns true if two different strings refer to the same file.
func IsSymlink ¶
IsSymlink returns if a given file is a symbolic link on a Unix like OS or false if the OS is Windows
Types ¶
type EachLineFunc ¶
EachLineFunc is definition of callback
Click to show internal directories.
Click to hide internal directories.