Documentation ¶
Index ¶
- func BytesToGigaBytes(in uint64) float64
- func BytesToMegaBytes(in uint64) float64
- func Expired(path string, regex string, nowTime time.Time, maxTime time.Duration) ([]os.FileInfo, error)
- func List(path string, regex string) ([]os.FileInfo, error)
- func RegexBeginsWith(val string) string
- func RegexEndsWith(val string) string
- func Size(path string, regex string) (uint64, error)
- type AscendingTime
- type DescendingTime
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BytesToGigaBytes ¶
BytesToGigaBytes converts Bytes to GigaBytes
func BytesToMegaBytes ¶
BytesToMegaBytes converts Bytes to MegaBytes
func Expired ¶
func Expired(path string, regex string, nowTime time.Time, maxTime time.Duration) ([]os.FileInfo, error)
Expired returns the files that have expired
func RegexBeginsWith ¶
RegexBeginsWith returns the string regex
Types ¶
type AscendingTime ¶
AscendingTime sorting FileInfo by time
func (AscendingTime) Len ¶
func (a AscendingTime) Len() int
func (AscendingTime) Less ¶
func (a AscendingTime) Less(i, j int) bool
func (AscendingTime) Swap ¶
func (a AscendingTime) Swap(i, j int)
type DescendingTime ¶
DescendingTime sorting FileInfo by time
func (DescendingTime) Len ¶
func (a DescendingTime) Len() int
func (DescendingTime) Less ¶
func (a DescendingTime) Less(i, j int) bool
func (DescendingTime) Swap ¶
func (a DescendingTime) Swap(i, j int)
Click to show internal directories.
Click to hide internal directories.