Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AscendingTime ¶
AscendingTime sorts []os.FileInfo by modification time ascending, falling back to filename ascending if modification times are equal.
func (AscendingTime) Len ¶
func (s AscendingTime) Len() int
func (AscendingTime) Less ¶
func (s AscendingTime) Less(i, j int) bool
func (AscendingTime) Swap ¶
func (s AscendingTime) Swap(i, j int)
type DescendingTime ¶
DescendingTime sorts []os.FileInfo by modification time descending, falling back to filename descending if modification times are equal.
func (DescendingTime) Len ¶
func (s DescendingTime) Len() int
func (DescendingTime) Less ¶
func (s DescendingTime) Less(i, j int) bool
func (DescendingTime) Swap ¶
func (s DescendingTime) Swap(i, j int)
type DescendingTimeName ¶
type DescendingTimeName []string
DescendingTimeName sorts []string by timestamp in name descending, falling back to the full filename descending if timestamps are equal or missing.
func (DescendingTimeName) Len ¶
func (s DescendingTimeName) Len() int
func (DescendingTimeName) Less ¶
func (s DescendingTimeName) Less(i, j int) bool
func (DescendingTimeName) Swap ¶
func (s DescendingTimeName) Swap(i, j int)
Click to show internal directories.
Click to hide internal directories.