Skip to content

Instantly share code, notes, and snippets.

@brancz
Created August 11, 2017 09:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brancz/4e8603d6e209cc8396866d721c30397e to your computer and use it in GitHub Desktop.
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
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