Documentation ¶
Index ¶
- func AppendErrorStack(es error, errors ...error) error
- func NewErrorStack(errMsg string) error
- func OsYield()
- func ProcYield(cycles uint32)
- func WrapErrorStack(err error) error
- func WrapErrorStackWithMessage(es error, errMsg string) error
- type ClosableChannel
- type Complex
- type ErrorStack
- type Float
- type Integer
- type OrderedKey
- type OrderedKeyComparator
- type ReadOnlyChannel
- type SendOnlyChannel
- type Signed
- type Unsigned
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AppendErrorStack ¶
func NewErrorStack ¶
func WrapErrorStack ¶
Types ¶
type ClosableChannel ¶
type ClosableChannel[T comparable] interface { io.Closer ReadOnlyChannel[T] SendOnlyChannel[T] }
func NewSafeClosableChannel ¶
func NewSafeClosableChannel[T comparable](chSize ...int) ClosableChannel[T]
type Complex ¶
type Complex interface { ~complex64 | ~complex128 }
Complex is a constraint that permits any complex numeric type. If future releases of Go add new predeclared complex numeric types, this constraint will be modified to include them. We have to calc the complex square root. i.e. Amplitude (modulus) comparison in the complex plane.
type ErrorStack ¶
type Float ¶
Float is a constraint that permits any floating-point type. If future releases of Go add new predeclared floating-point types, this constraint will be modified to include them.
type Integer ¶
Integer is a constraint that permits any integer type. If future releases of Go add new predeclared integer types, this constraint will be modified to include them.
type OrderedKeyComparator ¶
type OrderedKeyComparator[K OrderedKey] func(i, j K) int64
OrderedKeyComparator Assume i is the new key.
- i == j (i-j == 0, return 0)
- i > j (i-j > 0, return 1), turn to right part.
- i < j (i-j < 0, return -1), turn to left part.
type ReadOnlyChannel ¶
type ReadOnlyChannel[T comparable] interface { Wait() <-chan T }
type SendOnlyChannel ¶
type SendOnlyChannel[T comparable] interface { Send(v T, nonBlocking ...bool) error IsClosed() bool }