Sometimes I fall in love with code

Date: Fri, Dec 27, 2013

The things you can do, in this case with the Go programing language

I don’t use this, since I need often more but isn’t this just need?

	package main

	import "log"

	const debug debugging = true // or flip to false

	type debugging bool

	func (d debugging) Printf(format string, args ...interface{}) {
		d {
			log.Printf(format, args...)

	func main() {
		debug.Printf("foo %d %.2f", 42, 12.7)