package util
Import Path
github.com/failsafe-go/failsafe-go/internal/util (on go.dev)
Dependency Relation
imports 3 packages, and imported by 2 packages
Involved Source Files
util.go
Package-Level Type Names (total 2)
( Clock) CurrentUnixNano() int64
func NewClock() Clock
( Stopwatch) ElapsedTime() time.Duration
( Stopwatch) Reset()
func NewStopwatch() Stopwatch
Package-Level Functions (total 9)
Type Parameters:
A: any
B: any
AppliesToAny returns true if any of the biPredicates evaluate to true for the values.
ErrorTypesMatch indicates whether the err or any unwrapped causes of the err are assignable to the target type. This is
similar to the test that errors.As performs, but does not actually assign a value and allows a non-pointer target.
This method also allows a non-pointer target for an error that's implemented with pointer receivers.
Panics if target is nil or not an error.
MergeContexts returns a context that is canceled when either ctx1 or ctx2 are Done.
func NewStopwatch() Stopwatch
Type Parameters:
T: number
Type Parameters:
T: number
Type Parameters:
T: number
Type Parameters:
T: number
RoundDown returns the input rounded down to the nearest interval.
![]() |
The pages are generated with Golds v0.8.2. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |