sortutils

package
v1.51.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 27, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AscendingTime

type AscendingTime []os.FileInfo

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

type DescendingTime []os.FileInfo

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL