Versions in this module Expand all Collapse all v1 v1.0.1 Dec 2, 2021 v1.0.0 Nov 22, 2021 Changes in this version + const CEpoch + const CMaxWorker + const CSequenceBits + const CSequenceMask + const CTimeStampShift + const CWorkerIdBits + const CWorkerIdShift + func Base64Decode(str string) []byte + func Base64Encode(str []byte) string + func CreateFile(filepath string) + func FileSuffix(path string) string + func GeneratedID() string + func GetOutboundIP() (string, error) + func GoId() int64 + func IsNotString(str string) bool + func IsString(str string) bool + func Md5(str string) string + func NowDate() string + func NowDateTime() string + func NowParseDate(date string) (time.Time, error) + func NowUnix() int64 + func ParseId(id int64) (t time.Time, ts int64, workerId int64, seq int64) + func SHA256(message []byte) string + func String(value interface{}) string + func ZlibUnCompress(compressSrc []byte) ([]byte, error) + type IdWorker struct + func NewIdWorker(workerId int64) (iw *IdWorker, err error) + func (iw *IdWorker) NextId() (ts int64, err error)