We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4fe3f70 commit aaa4511Copy full SHA for aaa4511
env_test.go
@@ -32,7 +32,7 @@ func (d *unmarshaler) UnmarshalText(data []byte) (err error) {
32
return err
33
}
34
35
-type Config struct { //nolint:maligned
+type Config struct {
36
String string `env:"STRING"`
37
StringPtr *string `env:"STRING"`
38
Strings []string `env:"STRINGS"`
error.go
@@ -35,7 +35,7 @@ func (e AggregateError) Error() string {
sb.WriteString("env:")
for _, err := range e.Errors {
- sb.WriteString(fmt.Sprintf(" %v;", err.Error()))
+ fmt.Fprintf(&sb, " %v;", err.Error())
39
40
41
return strings.TrimRight(sb.String(), ";")
0 commit comments