github.com/TykTechnologies/tyk/internal/errors
No package summary is available.
Package
Files: 1. Third party imports: 0. Imports from organisation: 0. Tests: 0. Benchmarks: 0.
Vars
var (
New = errors.New
Is = errors.Is
Join = errors.Join
Unwrap = errors.Unwrap
ErrUnsupported = errors.ErrUnsupported
)
Functions
func Formatter
func Formatter(errs []error) string {
var result strings.Builder
for i, err := range errs {
result.WriteString(err.Error())
if i < len(errs)-1 {
result.WriteString("\n")
}
}
return result.String()
}
Cognitive complexity: 5, Cyclomatic complexity: 3
Tests
Files: 1. Third party imports: 0. Imports from organisation: 0. Tests: 1. Benchmarks: 0.