Reverse function in Go template