Versions in this module Expand all Collapse all v1 v1.0.0 Sep 13, 2021 Changes in this version + const BuildTimeLayout + const DateLayout + const DateTimeLayout + const TimestampLayout + var StartTime = time.Now() + func BytesToInt(b []byte) int + func CWD() string + func Conf() *ini.File + func ConfFile() string + func ConfFileDev() string + func DBFile() string + func DBFileDev() string + func DataDir() string + func DeepCopy(dst, src interface{}) error + func EXEName() string + func Ellipsis(text string, length int) string + func EnsureDir(dir string) (err error) + func ErrorLogFilename() string + func Exist(path string) bool + func ExpandHomeDir(path string) string + func HomeDir() string + func IntToBytes(n int) []byte + func IsPortInUse(port int) bool + func LocalIP() string + func LogDir() string + func MD5(str string) string + func Open(url string) error + func PauseExit() + func PauseGo(msg ...interface{}) + func ReloadConf() *ini.File + func SaveToConf(section string, kvmap map[string]string) error + func ShortID() string + func UpTime() time.Duration + func UpTimeString() string + func WorkInDir(f func(), dir string) + type DateTime time.Time + func (dt *DateTime) Scan(v interface{}) error + func (dt *DateTime) UnmarshalJSON(data []byte) (err error) + func (dt DateTime) MarshalJSON() ([]byte, error) + func (dt DateTime) String() string + func (dt DateTime) Value() (driver.Value, error) + type StringArray string + func (r StringArray) MarshalJSON() ([]byte, error)