Documentation ¶
Index ¶
- func ForEachLineInFile(path string, cb func(line string) error) error
- func Input(path string) string
- func Output(path string, lines []string, append bool)
- func SliceContainsString(s []string, e string) bool
- func UniqueIntSlice(intSlice []int) []int
- func UniqueStringSlice(stringSlice []string) []string
- func WriteFile(path string, content []byte, append bool)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ForEachLineInFile ¶ added in v1.17.0
ForEachLineInFile runs cb over all lines in a file
func Input ¶ added in v1.16.0
Input is used for flags, which accept input in any form. Input supports HTTP and HTTPS resources, file paths and stdin.
func Output ¶ added in v1.16.0
Output is used for flags, which accept output paths. If append is true, the output will be appended to the file at path.
func SliceContainsString ¶ added in v1.16.0
SliceContainsString checks if a slice contains a string
func UniqueIntSlice ¶ added in v1.18.0
UniqueIntSlice removes duplicates from a slice
func UniqueStringSlice ¶ added in v1.18.0
UniqueStringSlice removes duplicates from a slice
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.