Documentation ¶
Index ¶
- func ConvIntPtr[A, B constraints.Integer](a *A) *B
- func ConvertNonce(nonce []byte) *uint64
- func IdPtr[T any](value T) *T
- func MakeTimestamp(t time.Time) uint64
- func Max[T constraints.Ordered](a, b T) T
- func Min[T constraints.Ordered](a, b T) T
- func SetTestingT(t *testing.T)
- func WithErr[T any](_ T, err error) error
- func WithoutErr[T any](v T, err error) T
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvIntPtr ¶
func ConvIntPtr[A, B constraints.Integer](a *A) *B
ConvIntPtr converts an integer pointer to another type
func ConvertNonce ¶
func MakeTimestamp ¶
func Max ¶
func Max[T constraints.Ordered](a, b T) T
func Min ¶
func Min[T constraints.Ordered](a, b T) T
func SetTestingT ¶
func WithoutErr ¶
Types ¶
This section is empty.
Directories ¶
Path | Synopsis |
---|---|
Package heap provides heap operations for any type that implements heap.Interface.
|
Package heap provides heap operations for any type that implements heap.Interface. |
Click to show internal directories.
Click to hide internal directories.