I'm using go's native "flag"
package.
Built into it is the ability to visit all currently defined flags, using flag.VisitAll
.
I'm trying to build a snippet that tries to fetch the value for that flag from an environment variable if one exists and in-case the flag was not set, and I can't find a way to determine whether a specific flag was set or not.
Is there any way to achieve that without implementing new parameter types?