Documentation ¶
Index ¶
- Constants
- func CleanUrlPath(urlPath string) string
- func CompareNumInStr(prev, next string) bool
- func Contains(collection []string, find string) bool
- func FormatSize(size int64) string
- func FormatTimeMinute(t time.Time) string
- func FormatTimeSecond(t time.Time) string
- func HasFsPrefixDir(fsPath, prefix string) bool
- func HasUrlPrefixDir(urlPath, prefix string) bool
- func SplitFilename(filename string) (prefix, suffix string)
- func WildcardToRegexp(wildcard string) string
Constants ¶
View Source
const ( B = 1 << (iota * 10) KB MB GB TB PB )
Variables ¶
This section is empty.
Functions ¶
func CleanUrlPath ¶
func CompareNumInStr ¶
func FormatSize ¶
func FormatTimeMinute ¶
func FormatTimeSecond ¶
func HasFsPrefixDir ¶
func HasUrlPrefixDir ¶
func SplitFilename ¶
func WildcardToRegexp ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.