Documentation ¶
Index ¶
- func Filter(values []string, regex *regexp.Regexp, opts ...Option) ([]string, error)
- type Option
- func ExcludeOlderThan(age time.Duration) Option
- func SortAlphabetical(regexKey string, ascending bool) (Option, error)
- func SortMtime() Option
- func SortNumeric(regexKey string, ascending bool) (Option, error)
- func SortTemporal(regexKey string, ascending bool, layout string, location string) (Option, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Option ¶
type Option interface {
// contains filtered or unexported methods
}
func ExcludeOlderThan ¶ added in v0.99.0
ExcludeOlderThan excludes files whose modification time is older than the specified age.
Click to show internal directories.
Click to hide internal directories.