Documentation ¶
Index ¶
- Variables
- func Clean(filePath string) string
- func FileExists(path string) bool
- func FindPathTo(file string) (string, error)
- func IsChildDirOrSame(child, parent string) (bool, error)
- func ReadFile(fileName string) ([]byte, error)
- func SetFS(f afero.Fs)
- func TextExistsInFile(filePath, targetText string) (bool, error)
- func WriteFile(fileName string, data []byte, perm os.FileMode) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrFileNotFound = errors.New("file not found")
Functions ¶
func FindPathTo ¶
func IsChildDirOrSame ¶
isChildDirOrSame determines if the path `child` is a child path or the same as `parent`.
func TextExistsInFile ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.