I\'m wondering how to organise function maps for go templates that are dependant on the data being obtained in the specific endpoint being called.