Sorry, that last response could have been a bit more helpful. My templates take a structure as input. When I execute the template, I pass the structure to the template.
This line in the template: {{$resourceNameLower := .NameWithLowerFirst}} takes the contents of the NameWithLowerFirst field of the input structure and creates a variable resourceNameLower. Extract the contents of the variable like so: {{$resourceNameLower}} I hope that helps. Regards Simon -- 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. For more options, visit https://groups.google.com/d/optout.