 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Index ¶
- func AtLeastOneMatch(patterns []*regexp.Regexp, value string) bool
- func BulkCompile(patternsRaw []string) ([]*regexp.Regexp, error)
- func CopyFile(fromPath string, toPath string) error
- func IterFilterErr[T any](items iter.Seq[T], filter func(T) (bool, error)) iter.Seq2[T, error]
- func IterFirst[T any](items iter.Seq[T]) (T, iter.Seq[T])
- func IterMap[I, O any](items iter.Seq[I], transform func(I) O) iter.Seq[O]
- func PathIsEmpty(path string) (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AtLeastOneMatch ¶
AtLeastOneMatch returns whether the given value matches at least one of the given Regex patterns.
func BulkCompile ¶
BulkCompile compiles the given patterns in bulk and returned the result.
func CopyFile ¶ added in v0.6.0
CopyFile copies the given file from the given path to the other given path.
func IterFilterErr ¶ added in v0.5.0
IterFilterErr returns an iterator with values filtered using the given filter func.
func IterFirst ¶ added in v0.5.0
IterFirst returns the first value of an iterator and a pull-style iterator over the rest of the iterator.
func IterMap ¶ added in v0.5.0
IterMap transforms the given sequence of values with the given function and returns a sequence of the values transformed with the given transform function.
func PathIsEmpty ¶ added in v0.6.0
PathIsEmpty returns whether the given path is empty.
Types ¶
This section is empty.