Created
August 11, 2017 09:02
-
-
Save brancz/4e8603d6e209cc8396866d721c30397e to your computer and use it in GitHub Desktop.
configure glog with standard flag package even without using the flag package otherwise
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"flag" | |
) | |
func main() { | |
flag.Parse() | |
flag.Lookup("logtostderr").Value.Set("true") | |
flag.Lookup("v").Value.Set("10") | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment