Documentation ¶
Index ¶
- func Escape(a string) string
- func IsExecutable(file os.FileInfo) bool
- func IsExecutableMode(mode os.FileMode) bool
- func IsSymLink(file os.FileInfo) bool
- func IsSymLinkMode(mode os.FileMode) bool
- func MakeLink(abs string, name string) string
- func RecursivelySizeOf(info os.FileInfo, depth int) int64
- func RemoveSep(s string) string
- func SplitNumberAndUnit(input string) (float64, string)
- type Once
- type SafeSet
- type Slice
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Escape ¶
Escape * Tab is escaped as `\t`. * Carriage return is escaped as `\r`. * Line feed is escaped as `\n`. * Single quote is escaped as `\'`. * Double quote is escaped as `\"`. * Backslash is escaped as `\\`.
func IsExecutable ¶
func IsExecutableMode ¶
func IsSymLinkMode ¶
func RecursivelySizeOf ¶
RecursivelySizeOf returns the size of the file or directory depth < 0 means no limit
func SplitNumberAndUnit ¶ added in v0.27.0
SplitNumberAndUnit splits a string like "10bit" to 10 and "bit"
"12.3ml" to 12.4 and "ml"
"-1,234,213kg" to -1234213 and "kg"
Types ¶
Click to show internal directories.
Click to hide internal directories.