was to create a dummy variable of a dummy type, change the functions “Value” and “Counter” to be methods that have this dummy type as receiver, and use the dummy variable as object in the template.Execute call.
Thank you!
My first thought was that the funcmap would add some overhead.
But now my question is obsolete, because I found a need for the “dummy”: it now stores the starting time of the httpHandler.