package
1.12.6
Repository: https://github.com/go-dev-frame/sponge.git
Documentation: pkg.go.dev

# Functions

AdaptiveMongodbDsn adaptive mongodb dsn.
AdaptiveMysqlDsn adaptation of various mysql format dsn address.
AdaptivePostgresqlDsn convert postgres dsn to kv string.
AdaptiveSqlite adaptive sqlite.
DeleteBrackets delete brackets in dsn.
FormatDateTimeLayout formats the given time to the layout string "2006-01-02 15:04:05".
FormatDateTimeLayoutWithMS formats the given time to the layout string "2006-01-02 15:04:05.000".
FormatDateTimeLayoutWithMSAndTZ formats the given time to the layout string "2006-01-02T15:04:05.000Z".
FormatDateTimeRFC3339 formats the given time to the layout string "2006-01-02T15:04:05Z07:00".
GetAvailablePort get available port.
GetHostname get hostname.
GetLocalHTTPAddrPairs get available http server and request address.
Int64ToStr int64 to string.
IntToProtoInt32 convert int to proto int32.
IntToStr int to string.
NewWaitPrinter create a new WaitPrinter instance.
ParseDateTimeLayout parses the given string to time with layout string "2006-01-02 15:04:05".
ParseDateTimeLayoutWithMS parses the given string to time with layout string "2006-01-02 15:04:05.000".
ParseDateTimeLayoutWithMSAndTZ parses the given string to time with layout string "2006-01-02T15:04:05.000Z".
ParseDateTimeRFC3339 parses the given string to time with layout string "2006-01-02T15:04:05Z07:00".
ProtoInt32ToInt convert proto int32 to int.
ProtoInt64ToUint64 convert proto int64 to uint64.
SafeRun safe run.
SafeRunWithTimeout safe run with limit timeouts.
StrToFloat32 string to float32.
StrToFloat32E string to float32 with error.
StrToFloat64 string to float64.
StrToFloat64E string to float64 with error.
StrToInt string to int.
StrToIntE string to int with error.
StrToUint32 string to uint32.
StrToUint32E string to uint32 with error.
StrToUint64 string to uint64.
StrToUint64E string to uint64 with error.
Uint64ToProtoInt64 convert uint64 to proto int64.
Uint64ToStr uint64 to string.

# Constants

DateLayout is the layout string for date format.
DateTimeLayout is the layout string for datetime format.
DateTimeLayoutWithMS is the layout string for datetime format with milliseconds.
DateTimeLayoutWithMSAndTZ is the layout string for datetime format with milliseconds and timezone.
MaxStringID is the maximum string ID.
RFC3339 is the layout string for RFC3339 format.
TimeLayout is the layout string for time format.

# Structs

WaitPrinter is a waiting printer.