MCPcopy Create free account
hub / github.com/caarlos0/env / Error

Method Error

error.go:32–42  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

30}
31
32func (e AggregateError) Error() string {
33 var sb strings.Builder
34
35 sb.WriteString("env:")
36
37 for _, err := range e.Errors {
38 fmt.Fprintf(&sb, " %v;", err.Error())
39 }
40
41 return strings.TrimRight(sb.String(), ";")
42}
43
44// Unwrap implements std errors.Join go1.20 compatibility
45func (e AggregateError) Unwrap() []error {

Callers

nothing calls this directly

Calls 1

ErrorMethod · 0.45

Tested by

no test coverage detected