Documentation
¶
Index ¶
- func ErrorStringOrZero(err error) string
- func PanicRecover(panicError *error, onPanicErrors ...func(*PanicError)) error
- func ParseFloat32(str string) (float32, error)
- func ParseFloat64(str string) (float64, error)
- func ParseInt(str string, base int) (int, error)
- func ParseInt8(str string, base int) (int8, error)
- func ParseInt16(str string, base int) (int16, error)
- func ParseInt32(str string, base int) (int32, error)
- func ParseInt64(str string, base int) (int64, error)
- func ParseNumber(str, typ string) (any, error)
- func ParseUint(str string, base int) (uint, error)
- func ParseUint8(str string, base int) (uint8, error)
- func ParseUint16(str string, base int) (uint16, error)
- func ParseUint32(str string, base int) (uint32, error)
- func ParseUint64(str string, base int) (uint64, error)
- type PanicError
- type TimeoutError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ErrorStringOrZero ¶ added in v1.1.31
func PanicRecover ¶ added in v1.1.31
func PanicRecover(panicError *error, onPanicErrors ...func(*PanicError)) error
func ParseFloat32 ¶
func ParseFloat64 ¶
func ParseNumber ¶
Types ¶
type PanicError ¶ added in v1.1.31
type PanicError struct {
// contains filtered or unexported fields
}
func NewPanicError ¶ added in v1.1.31
func NewPanicError(exception any, stack string) *PanicError
func (*PanicError) Error ¶ added in v1.1.31
func (err *PanicError) Error() string
type TimeoutError ¶
type TimeoutError struct {
// contains filtered or unexported fields
}
func NewTimeoutError ¶
func NewTimeoutError(hint string) *TimeoutError
func (*TimeoutError) Error ¶
func (err *TimeoutError) Error() string
func (*TimeoutError) Timeout ¶
func (err *TimeoutError) Timeout() bool
Click to show internal directories.
Click to hide internal directories.