Documentation ¶
Index ¶
- func AddNewSliceElementsToFile(filePath string, newRepos []string)
- func DumpStringsSliceToFile(repos []string, filePath string)
- func GetDotFilePath() string
- func JoinSlices(new []string, existing []string) []string
- func OpenFile(filePath string) *os.File
- func ParseFileLinesToSlice(filePath string) []string
- func SliceContains(slice []string, value string) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddNewSliceElementsToFile ¶
addNewSliceElementsToFile given a slice of strings representing paths, stores them to the filesystem addNewSliceElementsToFile given a slice of strings representing paths, stores them to the filesystem
func DumpStringsSliceToFile ¶
dumpStringsSliceToFile writes content to the file in path `filePath` (overwriting existing content)
func GetDotFilePath ¶
func GetDotFilePath() string
getDotFilePath returns the dot file for the repos list. Creates it and the enclosing folder if it does not exist.
func JoinSlices ¶
joinSlices adds the element of the `new` slice into the `existing` slice, only if not already there
func ParseFileLinesToSlice ¶
parseFileLinesToSlice given a file path string, gets the content of each line and parses it to a slice of strings.
func SliceContains ¶
sliceContains returns true if `slice` contains `value`
Types ¶
This section is empty.