Documentation ¶
Index ¶
- func ClearDir(dirPath string, excludes []string) error
- func CopyFile(sourceFile string, destinationFile string) error
- func CopyOrMerge(sourceFile string, destinationFile string) error
- func CreateDirectory(path string) error
- func CreateFile(path, content string) error
- func DeleteAll(dirPath string) error
- func DeleteSingleFile(filePath string) error
- func Equal(fileA string, fileB string) (bool, error)
- func Exists(filename string) bool
- func FindAll(suffix string, excludes []string, dir string) (result []string, err error)
- func FindFirst(fileSuffix string, dir string) (result string, err error)
- func Grep(filepath string, keyword string) (hit bool, err error)
- func GrepRecursive(targetDir string, keyword string) (files []string, err error)
- func MergeKeyValFile(fromFile string, toFile string, separator string) error
- func MergeTextFiles(fromFile string, toFile string) error
- func Move(source, destination string) error
- func Open(filePath string) ([]byte, error)
- func OpenFile(fileName string) (*os.File, error)
- func OpenIgnoreFile(sourceDir string) (lines []string, err error)
- func OpenLines(filePath string) ([]string, error)
- func OpenLinesStrict(filePath string) ([]string, error)
- func Overwrite(lines []string, filePath string) error
- func Path(format string, a ...interface{}) string
- func ReadJson(file string, parsed interface{}) error
- func ReadXml(file string, parsed interface{}) error
- func RelPath(sourceDirectory string, filePath string) (string, error)
- func RemoveIntellijFiles(targetDir string, recursive bool, dryRun bool) (string, error)
- func Render(inputFilePath string, outputFilePath string, r interface{}) error
- func SearchReplace(filePath string, from string, to string) error
- func SetLogger(logger logrus.FieldLogger)
- func SuffixIn(keyword string, list []string) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CopyOrMerge ¶
func CreateDirectory ¶
func CreateFile ¶
func DeleteSingleFile ¶
func GrepRecursive ¶
func MergeTextFiles ¶
func OpenIgnoreFile ¶
func OpenLinesStrict ¶
func RemoveIntellijFiles ¶ added in v1.0.1
func SetLogger ¶
func SetLogger(logger logrus.FieldLogger)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.