Documentation ¶
Overview ¶
Package sort is used to sort file changes in a variety of ways Alphabetical order is the default
Index ¶
- func Alphabetically(changes []*file.Change, reverseSort bool) []*file.Change
- func BySize(changes []*file.Change, reverseSort bool) ([]*file.Change, error)
- func ByTime(changes []*file.Change, sortName string, reverseSort bool) ([]*file.Change, error)
- func Changes(changes []*file.Change, sortName string, reverseSort bool) ([]*file.Change, error)
- func FilesBeforeDirs(changes []*file.Change, revert bool) []*file.Change
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Alphabetically ¶
Alphabetically sorts the changes in alphabetical order.
func ByTime ¶
ByTime sorts the changes by the specified file timing attribute (modified time, access time, change time, or birth time).
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.