Documentation ¶
Index ¶
- Variables
- func ByteSize(size int) string
- func Copy[T any](src T) *T
- func Deadline(ctx context.Context, fn func(exceeded <-chan struct{}) error) error
- func Equals(first any, second any) bool
- func ExponentialRetry(attempts int, initialDelay time.Duration, limitDelay time.Duration, ...) error
- func GetEnv[T string | int | bool | []string | []int | []bool](key string, def T) T
- func Merge[T any](dst *T, src T)
- func Optional[T any](param []T, def T) T
- func Pointer[T any](variable T) *T
- func RandomString(length int) string
- func Retry(attempts int, delay time.Duration, retriables []error, ...) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrDeadlineExceeded = errors.New("deadline exceeded")
Functions ¶
func ExponentialRetry ¶
func RandomString ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.