Sunday, October 5, 2025
HomeGolangAnnoying VS Code "error" - Getting Assist

Annoying VS Code “error” – Getting Assist


I’ve a inbuilt perform inside a Go template. The perform works with none execution errors, however VS Code claims there may be an error.

And the terminal exhibits an error:

Sudden key phrase or identifier.

I’ve put in “Go for Visible Studio Code”, nevertheless it appears not acknowledge features within the templates. Any ideas find out how to eliminate this “error”?

Shouldn’t there be an area earlier than the chart? as in:

{{ chart "..." }}

Not

{{chart "..." }}

Doesn’t matter. The code works excellent, however VS Code report an error.

Is that in a .go file or one thing like an .html file? It appears to me prefer it’s an html file and thus it has nothing to do with the Go for Visible Studio plugin. VSCode is attempting to confirm that it’s legitimate HTML and thus is validating the stuff between <script> tags is legitimate JavaScript.

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments