Useful template functions for Go templates.