You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the value in the default tag is not parseable as the type of the field, there is no error returned. Is this intended? For example:
typeWidgetstruct {
Colors []string`env:"[red,blue]"`
}
funcmain() {
varcColorserr:=defaults.Set(&c)
fmt.Println("err: ", err) // nothing printed, no errorfmt.Println(c.Colors) // nothing printed, tag value was not valid JSON, so parsing silently failed
}
The text was updated successfully, but these errors were encountered:
If the value in the default tag is not parseable as the type of the field, there is no error returned. Is this intended? For example:
The text was updated successfully, but these errors were encountered: