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条)

报告相同问题?

悬赏问题

  • ¥15 wifi 图标不见了 不知道怎么办 上不了网 变成小地球了
  • ¥50 STM32单片机传感器读取错误
  • ¥50 power BI 从Mysql服务器导入数据,但连接进去后显示表无数据
  • ¥15 (关键词-阻抗匹配,HFSS,RFID标签)
  • ¥50 sft下载大文阻塞卡死
  • ¥15 机器人轨迹规划相关问题
  • ¥15 word样式右侧翻页键消失
  • ¥15 springboot+vue 集成keycloak sso到阿里云
  • ¥15 win7系统进入桌面过一秒后突然黑屏
  • ¥30 backtrader对于期货交易的现金和资产计算的问题