Ensure primary library usage is via struct literals #1774
Labels
area/v3
relates to / is being considered for v3
kind/cleanup
describes internal cleanup / maintaince
Milestone
One of the strongest differentiators of this library is (arguably! (I'm arguing)) how declarative it is. Ensuring the primary usage of the library is via struct literals will support this differentiation, imho.
In practice, this can certainly become awkward to the point of being a bad user experience. For example, consider the "value source" implementation
Sources: EnvVars(...)
that replaces the v2EnvVars: []string{...}
. TheEnvVars
function is not a literal declaration of a type, but the usage is expected to be within a literal declaration of aFlag
type.Judgement calls must be made!
The text was updated successfully, but these errors were encountered: