package
5.4.0
Repository: https://github.com/splitio/go-toolkit.git
Documentation: pkg.go.dev

# Functions

AsFloat64OrNil return ref.
AsInt64OrNil returns ref.
AsIntOrNil returns ref.
AsStringOrNil returns ref.
DedupeStringSlice returns a new slice without duplicate strings.
Float64Ref returns ref.
Int64FromRef returns value.
Int64Ref returns ref.
Int64RefOrNil returns ref.
IntFromRef returns 0 if nil, dereferenced value otherwhise.
IntRef returns ref.
IntRefOrNil returns ref.
MaxDuration returns the max duration among them.
MinDuration returns the min duration among them.
Partition create partitions considering the passed amount.
StringFromRef returns original value if not empty.
StringRef returns ref.
StringRefOrNil returns ref.
StringValueOrDefault returns original value if not empty.
WithAttempts executes a function N times or until no error is returned.
WithBackoff wraps the function to add Exponential backoff.
WithBackoffCancelling wraps the function to add Exponential backoff.