Documentation ¶
Index ¶
- func ByExtensionAscend(a, b os.FileInfo) bool
- func ByExtensionCaseSensitiveAscend(a, b os.FileInfo) bool
- func ByExtensionCaseSensitiveDescend(a, b os.FileInfo) bool
- func ByExtensionDescend(a, b os.FileInfo) bool
- func ByGroupAscend(a, b os.FileInfo) bool
- func ByGroupCaseSensitiveAscend(a, b os.FileInfo) bool
- func ByGroupCaseSensitiveDescend(a, b os.FileInfo) bool
- func ByGroupDescend(a, b os.FileInfo) bool
- func ByInodeAscend(a, b os.FileInfo) bool
- func ByInodeDescend(a, b os.FileInfo) bool
- func ByMimeTypeAscend(a, b os.FileInfo) bool
- func ByMimeTypeDescend(a, b os.FileInfo) bool
- func ByMimeTypeParentAscend(a, b os.FileInfo) bool
- func ByMimeTypeParentDescend(a, b os.FileInfo) bool
- func ByNameAscend(a, b os.FileInfo) bool
- func ByNameCaseSensitiveAscend(a, b os.FileInfo) bool
- func ByNameCaseSensitiveDescend(a, b os.FileInfo) bool
- func ByNameDescend(a, b os.FileInfo) bool
- func ByNameWidthAscend(a, b os.FileInfo) bool
- func ByNameWidthDescend(a, b os.FileInfo) bool
- func ByNameWithoutALeadingDotAscend(a, b os.FileInfo) bool
- func ByNameWithoutALeadingDotCaseSensitiveAscend(a, b os.FileInfo) bool
- func ByNameWithoutALeadingDotCaseSensitiveDescend(a, b os.FileInfo) bool
- func ByNameWithoutALeadingDotDescend(a, b os.FileInfo) bool
- func ByNone(a, b os.FileInfo) bool
- func ByOwnerAscend(a, b os.FileInfo) bool
- func ByOwnerCaseSensitiveAscend(a, b os.FileInfo) bool
- func ByOwnerCaseSensitiveDescend(a, b os.FileInfo) bool
- func ByOwnerDescend(a, b os.FileInfo) bool
- func BySizeAscend(a, b os.FileInfo) bool
- func BySizeDescend(a, b os.FileInfo) bool
- func Default(a, b os.FileInfo) bool
- type FileSortFunc
- type Option
- type Sorter
Constants ¶
This section is empty.
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 ¶
Types ¶
type 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.