flagValueWrapper implements pflag.Value around a flag.Value. The main difference here is the addition of the Type method that returns a string name of the type. As this is generally unknown, we approximate that with reflection.
| 25 | // name of the type. As this is generally unknown, we approximate that with |
| 26 | // reflection. |
| 27 | type flagValueWrapper struct { |
| 28 | inner goflag.Value |
| 29 | flagType string |
| 30 | } |
| 31 | |
| 32 | // We are just copying the boolFlag interface out of goflag as that is what |
| 33 | // they use to decide if a flag should get "true" when no arg is given. |
nothing calls this directly
no outgoing calls
no test coverage detected