Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Contains ¶ added in v0.3.0
func Contains[T comparable](s []T, e T) bool
func DownloadFile ¶
DownloadFile downloads a file and returns a path to it in temporary storage.
func NewTarFilter ¶ added in v0.4.0
func NewTarFilter(r io.ReadCloser, only string, trim bool) io.ReadCloser
NewTarFilter returns a new tar filter that will only return files that start with the value of only. Will strip leading '/' from only to match how tar files normally are constructed. If trim is true, the prefix will be trimmed from the returned files.
func ReverseSlice ¶ added in v0.3.0
func ReverseSlice[T comparable](s []T)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.