79242835

Date: 2024-12-02 02:29:31
Score: 1
Natty:
Report link

You are getting an error because {{.QuotesJSON}} is parsed as JavaScript, and your editor is correct, it is not valid JavaScript. I think what you should do instead of this is serialize the JSON into a slice of structs, then loop through each slide with a {{range .yourSlice}} statement. But if you really want to assign the resulting JSON into a variable, then you can either turn off your diagnostics or just live with the errors.

Reasons:
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Klrfl