Documentation ¶
Index ¶
- Constants
- func ByExtensionAscend(a, b *item.FileInfo) int
- func ByExtensionCaseSensitiveAscend(a, b *item.FileInfo) int
- func ByExtensionCaseSensitiveDescend(a, b *item.FileInfo) int
- func ByExtensionDescend(a, b *item.FileInfo) int
- func ByGroupAscend(a, b *item.FileInfo) int
- func ByGroupCaseSensitiveAscend(a, b *item.FileInfo) int
- func ByGroupCaseSensitiveDescend(a, b *item.FileInfo) int
- func ByGroupDescend(a, b *item.FileInfo) int
- func ByInodeAscend(a, b *item.FileInfo) int
- func ByInodeDescend(a, b *item.FileInfo) int
- func ByMimeTypeAscend(a, b *item.FileInfo) int
- func ByMimeTypeDescend(a, b *item.FileInfo) int
- func ByMimeTypeParentAscend(a, b *item.FileInfo) int
- func ByMimeTypeParentDescend(a, b *item.FileInfo) int
- func ByNameAscend(a, b *item.FileInfo) int
- func ByNameCaseSensitiveAscend(a, b *item.FileInfo) int
- func ByNameCaseSensitiveDescend(a, b *item.FileInfo) int
- func ByNameDescend(a, b *item.FileInfo) int
- func ByNameWidthAscend(a, b *item.FileInfo) int
- func ByNameWidthDescend(a, b *item.FileInfo) int
- func ByNameWithoutALeadingDotAscend(a, b *item.FileInfo) int
- func ByNameWithoutALeadingDotCaseSensitiveAscend(a, b *item.FileInfo) int
- func ByNameWithoutALeadingDotCaseSensitiveDescend(a, b *item.FileInfo) int
- func ByNameWithoutALeadingDotDescend(a, b *item.FileInfo) int
- func ByNone(a, b *item.FileInfo) int
- func ByOwnerAscend(a, b *item.FileInfo) int
- func ByOwnerCaseSensitiveAscend(a, b *item.FileInfo) int
- func ByOwnerCaseSensitiveDescend(a, b *item.FileInfo) int
- func ByOwnerDescend(a, b *item.FileInfo) int
- func BySizeAscend(a, b *item.FileInfo) int
- func BySizeDescend(a, b *item.FileInfo) int
- func ByVersionAscend(a, b *item.FileInfo) int
- func ByVersionDescend(a, b *item.FileInfo) int
- func Default(a, b *item.FileInfo) int
- type FileSortFunc
- type Option
- type Sorter
Constants ¶
View Source
const MimeTypeName = filter.MimeTypeName
View Source
const RecursiveSizeName = content.RecursiveSizeName
Variables ¶
This section is empty.
Functions ¶
func ByExtensionAscend ¶
func ByExtensionDescend ¶
func ByGroupAscend ¶
func ByGroupDescend ¶
func ByInodeAscend ¶ added in v0.8.0
func ByInodeDescend ¶ added in v0.8.0
func ByMimeTypeAscend ¶ added in v0.7.0
func ByMimeTypeDescend ¶ added in v0.7.0
func ByMimeTypeParentAscend ¶ added in v0.7.0
func ByMimeTypeParentDescend ¶ added in v0.7.0
func ByNameAscend ¶
func ByNameDescend ¶
func ByNameWidthAscend ¶ added in v0.7.0
func ByNameWidthDescend ¶ added in v0.7.0
func ByNameWithoutALeadingDotAscend ¶ added in v0.8.0
func ByNameWithoutALeadingDotCaseSensitiveAscend ¶ added in v0.8.0
func ByNameWithoutALeadingDotCaseSensitiveDescend ¶ added in v0.8.0
func ByNameWithoutALeadingDotDescend ¶ added in v0.8.0
func ByOwnerAscend ¶
func ByOwnerDescend ¶
func BySizeAscend ¶
func BySizeDescend ¶
func ByVersionAscend ¶ added in v0.14.0
func ByVersionDescend ¶ added in v0.14.0
Types ¶
type FileSortFunc ¶
func ByRecursiveSizeAscend ¶ added in v0.8.5
func ByRecursiveSizeAscend(depth int) FileSortFunc
func ByRecursiveSizeDescend ¶ added in v0.8.5
func ByRecursiveSizeDescend(depth int) FileSortFunc
func ByTimeAscend ¶
func ByTimeAscend(timeType string) FileSortFunc
func ByTimeDescend ¶
func ByTimeDescend(timeType string) FileSortFunc
type Option ¶
type Option = func(s *Sorter)
func WithSortOption ¶
func WithSortOption(option ...FileSortFunc) Option
type Sorter ¶
type Sorter struct {
// contains filtered or unexported fields
}
func (*Sorter) AddOption ¶
func (s *Sorter) AddOption(option ...FileSortFunc)
func (*Sorter) Build ¶
func (s *Sorter) Build() FileSortFunc
func (*Sorter) UnsetDirFirst ¶
func (s *Sorter) UnsetDirFirst()
Click to show internal directories.
Click to hide internal directories.