Skip to content
Advertisement

Tag: go-templates

Assign Golang variable to Javascript

Currently I am having an issue related to assign a Golang variable to a Javascript variable. I am using the Golang templates, so, from the backend I sent a JSON variable, just like this: As you see, I have a slice, convert it to Json and then that Json to string, and send it to the template. Then, in the

Advertisement