basic

package
v1.1.31 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 6, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ErrorStringOrZero added in v1.1.31

func ErrorStringOrZero(err error) string

func PanicRecover added in v1.1.31

func PanicRecover(panicError *error, onPanicErrors ...func(*PanicError)) error

func ParseFloat32

func ParseFloat32(str string) (float32, error)

func ParseFloat64

func ParseFloat64(str string) (float64, error)

func ParseInt

func ParseInt(str string, base int) (int, error)

func ParseInt8

func ParseInt8(str string, base int) (int8, error)

func ParseInt16

func ParseInt16(str string, base int) (int16, error)

func ParseInt32

func ParseInt32(str string, base int) (int32, error)

func ParseInt64

func ParseInt64(str string, base int) (int64, error)

func ParseNumber

func ParseNumber(str, typ string) (any, error)

func ParseUint

func ParseUint(str string, base int) (uint, error)

func ParseUint8

func ParseUint8(str string, base int) (uint8, error)

func ParseUint16

func ParseUint16(str string, base int) (uint16, error)

func ParseUint32

func ParseUint32(str string, base int) (uint32, error)

func ParseUint64

func ParseUint64(str string, base int) (uint64, error)

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL