News for hackers. Stuff that matters.
Re:Go: a nice language with an annoying personality by btilly on Friday January 18, 2013 @02:14AM (#5077538)
Can't you just write a debug function, that checks a variable, then either does nothing or calls fmt.Println? Set the variable from a command line parameter. Sprinkle debug statements everywhere you want, and flip the parameter as needed.

Since the import is always used, it is never an error. No problem.

There are no comments on this comment yet.