mirror of
https://github.com/samber/lo.git
synced 2026-04-22 23:47:11 +08:00
758 B
758 B
name, slug, sourceRef, category, subCategory, playUrl, variantHelpers, similarHelpers, position, signatures
| name | slug | sourceRef | category | subCategory | playUrl | variantHelpers | similarHelpers | position | signatures | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ErrorsAs | errorsas | errors.go#L351 | core | error-handling | https://go.dev/play/p/8wk5rH8UfrE |
|
|
70 |
|
A generic wrapper around errors.As that returns the typed error and a boolean indicating success.
if rateLimitErr, ok := lo.ErrorsAs[*RateLimitError](err); ok {
// handle
}