dongshen7407 2017-04-01 12:05
浏览 18

在Gogland管理项目

I'm new in GO and need some help. I've got this structure of all my projects:

go_projects
-bin
-pkg
-src
--FirstProject
--SecondProject

Working in Gogland Build #GO-171.3780.106, built on March 22, 2017 I like this autocompletion which is standart now for IDEs. But when I'm working with SecondProject - Gogland always show in list files from FirstProject and some of them has equal names. My GOPATH is ../go_projects. Can I do something to exclude FirstProject modules from autocomplete for SecondProject and SecondProject from FirstProject??

  • 写回答

1条回答 默认 最新

  • duandai6373 2017-04-09 11:10
    关注

    The project structure you are using is not a proper Go structure. You should follow the instructions here: https://golang.org/doc/code.html#Workspaces for how to do that. As for completion, the projects are part of the same GOPATH (when configured correctly) so it's normal to have them show in each-others completion mode. However, you can exclude them by using Settings | Go | Imports

    评论

报告相同问题?

悬赏问题

  • ¥15 有赏,i卡绘世画不出
  • ¥15 如何用stata画出文献中常见的安慰剂检验图
  • ¥15 c语言链表结构体数据插入
  • ¥40 使用MATLAB解答线性代数问题
  • ¥15 COCOS的问题COCOS的问题
  • ¥15 FPGA-SRIO初始化失败
  • ¥15 MapReduce实现倒排索引失败
  • ¥15 ZABBIX6.0L连接数据库报错,如何解决?(操作系统-centos)
  • ¥15 找一位技术过硬的游戏pj程序员
  • ¥15 matlab生成电测深三层曲线模型代码