Documentation
¶
Index ¶
- func ContainsAllStrings(haystack []string, needles []string) bool
- func ContainsAnyString(haystack []string, needles []string) bool
- func FilterByDirectory(files []string, inDir string) []string
- func FilterByType(files []string, ofType string) []string
- func RelativePathFromTo(from string, to string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContainsAllStrings ¶
ContainsAllStrings checks if a haystack contains all needles
func ContainsAnyString ¶
ContainsAnyString checks if a haystack contains any needle
func FilterByDirectory ¶
FilterByDirectory removes all files from a slice that are not in a given directory
func FilterByType ¶
FilterByType removes all files from a list that do not have the suffix ofType The ofType argument should include the dot ".txt", ".go" ...
func RelativePathFromTo ¶
RelativePathFromTo returns the relative path from directory `from` to the file `to`
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.