http://play.golang.org/p/QtqMIIQTj6

Note the weird conditional syntax, else you will have odd error messages like:

panic: template: foo:8:5: executing "foo" at <.Bar>: Bar has arguments but cannot be invoked as function
Feedback

Powered by Vanilla PHP feedback form