Documentation
¶
Index ¶
- func BytesToString(b []byte) string
- func CurrentUsername() string
- func InListIsExist(source string, check []string) bool
- func IsDir(dir string) bool
- func IsExist(path string) bool
- func IsFile(path string) bool
- func RandByte(len int) []byte
- func RandString(len int) string
- func SizeFormat(size float64) string
- func SizeFormatTime(size float64) string
- func StringToBytes(str string) []byte
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CurrentUsername ¶
func CurrentUsername() string
CurrentUsername returns the username of the current user.
func InListIsExist ¶
Check whether the characters exist in the array
func IsDir ¶
IsDir returns true if given path is a directory, and returns false when it's a file or does not exist.
func RandString ¶
func SizeFormat ¶
func SizeFormatTime ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.