Documentation ¶
Index ¶
- func Contains[T comparable](list []T, val T) bool
- func GetLineInFile(filepath, match string) (res string, err error)
- func Keys[T, U comparable](myMap map[T]U) []T
- func Sha256sum(filepath string) (string, error)
- func Unarchive(source string, destination string) error
- func Unzip(source string, destination string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Contains ¶
func Contains[T comparable](list []T, val T) bool
Contains returns true if the provided list has a matching element
func GetLineInFile ¶
GetLineInFile searches the provided file for a line that contains the provided string. If a match is found, the entire line is returned. Only the first result is returned. If no lines match, an error is returned
func Keys ¶
func Keys[T, U comparable](myMap map[T]U) []T
Keys returns a slice containing the keys of the provided map. Order is preserved
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.