|
|
|
|
|
by sascha_sl
2210 days ago
|
|
Whatever you do, do not use the flag library in a package that might ever, EVER be imported. Google did this in the horribly written glog port to go which until recently was used everywhere in Kubernetes. The only way to determine the value of the "v" flag they define globally for your entire executable is to call the V(n) function with n incrementing until it returns false. pflag, which is used by cobra, is a much nicer library. |
|