Btw, I have to make a correction to my previous post (see below). This
init() doesn't seem to take effect all the time (or at all in some
projects). I also tried putting them into TestMain instead inside of my
test files with the same "doesn't always work" result (most of the time, it
does no
On Thursday, May 12, 2016 at 11:33:40 PM UTC+5:30, edunc...@gmail.com wrote:
>
> This is what I use with glog in my test file(s):
>
> func init() {
> if testing.Verbose() {
> flag.Set("alsologtostderr", "true")
> flag.Set("v", "5")
> }
> }
>
> (I just ran into this today, fyi)
>
Thanks! This was u