On 06/03/23, Bruno Albuquerque (b...@gmail.com) wrote: > You can easily get it to work, but not in a useful way I guess. > > https://go.dev/play/p/mq0O8OhJ1-a > > You could have a different template for each type you use I guess.
Thanks for that solution. I guess I could do t.Funcs(template.FuncMap{ "slicerInt" : slicerG[int], "slicerStr" : slicerG[string], ... }) which is at least better than rewriting the function for each type. Thanks again, Rory -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/ZAZiR4x8YfdrcuUW%40campbell-lange.net.