Versions in this module Expand all Collapse all v1 v1.6.0 Jun 17, 2019 Changes in this version + const Day + const Hour + const Microsecond + const MicrosecondsPerDay + const MicrosecondsPerHour + const MicrosecondsPerMillisecond + const MicrosecondsPerMinute + const MicrosecondsPerSecond + const MicrosecondsPerYear + const Millisecond + const MillisecondsPerDay + const MillisecondsPerHour + const MillisecondsPerMinute + const MillisecondsPerSecond + const MillisecondsPerYear + const Minute + const Nanosecond + const Second + const SecondsPerDay + const SecondsPerHour + const SecondsPerMinute + const SecondsPerYear + const Year + func DGetCurrentTime(layout string) string + func Dump(name string) (*os.File, error) + func Duration(d int64) time.Duration + func Exists(p string) bool + func FormatMemStats(m1, m2 *runtime.MemStats) string + func FromLocalDateToSecond(v string) int64 + func FromSecondToLocalDate(v int64) string + func FromTime2TimeInt(t time.Time) int + func FuncName(skip int) string + func GetCurrentMicrosecond() int64 + func GetCurrentMillisecond() int64 + func GetCurrentNanosecond() int64 + func GetCurrentSecond() int64 + func GetCurrentTime() string + func GetLocalIP() string + func GetRealIP(request *http.Request) (string, error) + func HumanSize(s uint64) string + func IsEmpty(dir string) (bool, error) + func IsLink(p string) (bool, error) + func IsLocalIP(request *http.Request) (bool, error) + func IsSameDay(t1, t2 time.Time) bool + func IsSameDayWithTimestamp(d1, d2 int64) bool + func ListDir(dir string) ([]string, error) + func LoadJsonToObject(filename string, t interface{}) error + func Marshal(v interface{}) ([]byte, error) + func ParseJSON(path string, v interface{}) error + func ReviewDumpPanic(file *os.File) error + func RuntimeStats(d time.Duration, f func(string)) + func Sleep(millisecond int64) + func SplitTimeInt(t int) (year, month, day int)