Versions in this module Expand all Collapse all v1 v1.16.2 Sep 23, 2026 Changes in this version + const DateLayout + const DateTimeLayout + const DateTimeLayoutWithMS + const DateTimeLayoutWithMSAndTZ + const MaxStringID + const RFC3339 + const TimeLayout + func AdaptiveMongodbDsn(dsn string) string + func AdaptiveMysqlDsn(dsn string) string + func AdaptivePostgresqlDsn(dsn string) string + func AdaptiveSqlite(dbFile string) string + func AutoOpenBrowser(visitURL string) error + func DeleteBrackets(str string) string + func FormatDateTimeLayout(t time.Time) string + func FormatDateTimeLayoutWithMS(t time.Time) string + func FormatDateTimeLayoutWithMSAndTZ(t time.Time) string + func FormatDateTimeRFC3339(t time.Time) string + func GetAvailablePort() (int, error) + func GetHostname() string + func GetLocalHTTPAddrPairs() (serverAddr string, requestAddr string) + func Int64ToStr(v int64) string + func IntToProtoInt32(v int) int32 + func IntToStr(v int) string + func ParseDateTimeLayout(s string) (time.Time, error) + func ParseDateTimeLayoutWithMS(s string) (time.Time, error) + func ParseDateTimeLayoutWithMSAndTZ(s string) (time.Time, error) + func ParseDateTimeRFC3339(s string) (time.Time, error) + func ProtoInt32ToInt(v int32) int + func ProtoInt64ToUint64(v int64) uint64 + func SafeRun(ctx context.Context, fn func(ctx context.Context)) + func SafeRunWithTimeout(d time.Duration, fn func(cancel context.CancelFunc)) + func StrToFloat32(str string) float32 + func StrToFloat32E(str string) (float32, error) + func StrToFloat64(str string) float64 + func StrToFloat64E(str string) (float64, error) + func StrToInt(str string) int + func StrToInt64(str string) int64 + func StrToInt64E(str string) (int64, error) + func StrToIntE(str string) (int, error) + func StrToUint(str string) uint + func StrToUint32(str string) uint32 + func StrToUint32E(str string) (uint32, error) + func StrToUint64(str string) uint64 + func StrToUint64E(str string) (uint64, error) + func StrToUintE(str string) (uint, error) + func Uint64ToProtoInt64(v uint64) int64 + func Uint64ToStr(v uint64) string + func UintToStr(v uint) string + type WaitPrinter struct + func NewWaitPrinter(interval time.Duration) *WaitPrinter + func (p *WaitPrinter) LoopPrint(runningTip string) + func (p *WaitPrinter) StopPrint(tip string)