dpdp42233 2018-12-29 22:37
浏览 157
已采纳

Golang-Visual Studio Code中的本地导入警告

Visual Studio Code warns about local import but the code is still executable. What is wrong?

enter image description here

enter image description here

  • 写回答

2条回答 默认 最新

  • doubei2340 2018-12-30 07:39
    关注

    Go doesn't have relative imports. You just can't have that.

    Your main application Go file must be at the topmost location in your project repository.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?