DEV Community

Discussion on: Need helping looping over Go struct/array in .html file

Collapse
 
javapriyan profile image
Karthikeyan • Edited

I am not sure why do you need this to be in the script tag. Iterate the h1 as usual with the template. It does the magic

Collapse
 
ohhnate profile image
Samuel Fuller

Ahhhhhh I see what you mean. I've been thinking about templates all wrong. I'm pretty sure I can get it fixed now. Thank you for the advice.

Collapse
 
javapriyan profile image
Karthikeyan

I am glad that helped. Happy hacking