Is there any way to handle styling errors due to go templating?

I’m getting an error in my file and that’s causing my auto build to break on github:

Do I need to wrap this in something for it to stop giving me these suggested errors?
The IDE is VS code.

What’s the error message?

The image you posted seems to be some code from a template, which may or may not work - we need to see more context (preferably your full git repository, or a minimal working example) to help you out.

The error’s in the HTML, image

The issue lies with your github auto-build or VS Code, so it’s best to ask there.
At least, please share your setup’s architecture, how it works, what it is expected to do etc.