Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( PathParam string DirectoryNameParam string SortTypeParam string TimeSpanParam string )
Functions ¶
func ParseParam ¶
func ParseParam()
Types ¶
type Setting ¶
type Setting struct { ImportPath string SortedEntries map[string][]*fs.DirEntry `comment:"map key: timestamp ,for example '2006-01-02 15.04.05'; file_type ,for example:'docx' "` SortOptions *SortOptions }
type SortOpt ¶
type SortOpt func(options *SortOptions)
func WithFileType ¶
func WithFileType() SortOpt
func WithTimeSpan ¶
type SortOptions ¶
type SortOptions struct {
// contains filtered or unexported fields
}
func NewSortOptions ¶
func NewSortOptions() *SortOptions
func (*SortOptions) SortByFileType ¶ added in v0.1.1
func (s *SortOptions) SortByFileType() bool
func (*SortOptions) SortByTimeSpan ¶ added in v0.1.1
func (s *SortOptions) SortByTimeSpan() bool
func (*SortOptions) TimeFormat ¶ added in v0.1.1
func (s *SortOptions) TimeFormat() string
Click to show internal directories.
Click to hide internal directories.