首先查看这篇链接https://blog.csdn.net/qq_29856169/article/details/116884291 如果解决即可,不行再去这里vsCode设置Run in Terminal【go】_来杯Sherry的博客-CSDN博客_run in terminal