V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
randomheap
V2EX  ›  问与答

关于新手 Golang 开发的一点疑问

  •  
  •   randomheap · Aug 27, 2020 · 890 views
    This topic created in 2073 days ago, the information mentioned may be changed or developed.

    请教各位 Go 大佬,从零开发 Go 的项目流程一般是怎么样的?

    Java 从零开发项目一般从 Maven 开始,需要什么包添加什么包。

    当然 Go 也有一些包管理工具,但是我还是非常迷茫,比如我 clone 了一些开源项目,

    里面导入包的方式有些是相对项目目录的:"gwp/Chapter_2_Go_ChitChat/chitchat/data",

    有些是 github 开头的"github.com/goinaction/code/chapter2/sample/search",

    其实我的疑问是我们要怎么运行这些开源项目?需要先执行 go get 吗?

    这些项目我都放在 GOPATH 下了

    reexamine
        1
    reexamine  
       Aug 27, 2020 via iPhone
    学下怎么用 go mod 吧
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2510 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 07:51 · PVG 15:51 · LAX 00:51 · JFK 03:51
    ♥ Do have faith in what you're doing.