Is that in a .go file or something like an .html file? It looks to me like it’s an html file and thus it has nothing to do with the Go for Visual Studio plugin. VSCode is trying to verify that it’s valid HTML and thus is validating the stuff between <script> tags is valid JavaScript.