Documentation
¶
Index ¶
- func CloseMute(closer Closer)
- func DefaultInt(a interface{}, b int) int
- func DefaultString(a interface{}, b string) string
- func DefaultZero[A any](v interface{}) A
- func ExponentialBucketTimeRange(start, end time.Duration, buckets int) []float64
- func HashInt64(raw []byte) (int64, error)
- func HashUInt32(raw []byte) (uint32, error)
- func HashUInt64(raw []byte) (uint64, error)
- func IgnoreError(err error)
- func IgnoreErrorFunc(f func() error)
- func IgnoreErrorWithOneArg[T any](fn func(t T) error, t T)
- func IsNil[T any](value T) bool
- func LinearBucketRange(start, end int64, buckets int) []float64
- func LinearBucketTimeRange(start, end time.Duration, buckets int) []float64
- func Must(err error)
- func MustGet[V any](v V, err error) V
- func SHA256(raw []byte) ([]byte, error)
- func Zero[A any]() A
- type Closer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultInt ¶
func DefaultString ¶
func DefaultZero ¶
func DefaultZero[A any](v interface{}) A
func ExponentialBucketTimeRange ¶
ExponentialBucketTimeRange creates a bucket set for a histogram that has exponentially increasing intervals between the values, e.g. 0, 0.5, 1, 2, 4, 8, ...
func HashUInt32 ¶
func HashUInt64 ¶
func IgnoreError ¶
func IgnoreError(err error)
func IgnoreErrorFunc ¶
func IgnoreErrorFunc(f func() error)
func IgnoreErrorWithOneArg ¶ added in v0.4.1
func LinearBucketRange ¶
LinearBucketRange creates a bucket set for a histogram that has uniform intervals between the values, e.g. 0, 1, 2, 3, 4, ...
func LinearBucketTimeRange ¶
LinearBucketTimeRange creates a bucket set for a histogram that has uniform intervals between the values, e.g. 0, 1, 2, 3, 4, ...
Types ¶
Click to show internal directories.
Click to hide internal directories.