Versions in this module Expand all Collapse all v1 v1.0.2 Apr 28, 2022 v1.0.1 Apr 25, 2022 Changes in this version + const FormatDay + const FormatDayHourMinSecond + func Bytes2str(b []byte) string + func BytesToInt64(buf []byte) int64 + func Catch(err error) + func Cmdexec(cmd string) string + func DisplaySize(raw float64) string + func DuplicateIntArray(m []int) []int + func DuplicateStringArray(m []string) []string + func ExistIntArray(s []int, e int) bool + func ExistStringArray(s []string, e string) bool + func FloatRound(f float64, n int) float64 + func FormatFileSize(fileSize int64) (size string) + func GetDifferentIntArray(sourceList, sourceList2 []int) (result []int) + func GetDifferentStringArray(sourceList, sourceList2 []string) (result []string) + func GetStrLine(file, str string) ([]string, error) + func Int64ToBytes(i int64) []byte + func IntToInt64(value int) int64 + func IsDir(fileAddr string) bool + func ParseMorningTime(t time.Time) time.Time + func ReadConfigIni(key, value string) (result string) + func RemoveDuplicates(a []string) (ret []string) + func RemoveElement(slice []interface{}, elem interface{}) []interface + func ResolveTime(seconds uint64) string + func ScanDirBySuffix(dirName, suffix string) []string + func SetCommandStd(cmd *exec.Cmd) (stdout, stderr *bytes.Buffer) + func SingleSlashToDoubleSlash(path string) string + func Str2bytes(s string) []byte + func StringToInt(value string) (i int) + func TimeToString(time time.Time) string + func TimeToStringDay(time time.Time) string