dongmei9203 2015-12-21 15:15
浏览 75
已采纳

Go开发是否需要付费的Github帐户进行私人开发? [关闭]

I'm just getting started with Go. I use subversion for most of my development, but the Go tutorial seems to assume that everything is hosted on Github in either a public repository or a (paid) private repository. It looks like I'm forced to choose between:

  1. committing to everybody having access to everything I write,
  2. spending $7 a month for a private Github repository,
  3. not using source code control or
  4. losing the ability to use Go's get/import facility properly

Am I missing something here, or is this really the case?

  • 写回答

3条回答 默认 最新

  • doufeng2877 2015-12-21 15:45
    关注

    go get supports most git, mercurial, bazaar & svn repos, so your own Git server, Bitbucket, GitLab, etc are all acceptable. This is touched on in the docs here: https://golang.org/doc/code.html#PackagePaths

    Similarly, you can just create a $GOPATH/src/yourname/yourpkg dir, but you will have a harder time sharing your code with others.

    In addition, you can use remote import paths (aka "vanity domains") to allow go get scott.com/pkg/usefulthing instead of directly pointing to GitHub, etc. Useful as you can avoid being tied to a single platform, should you wish to move in the future.

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

报告相同问题?

悬赏问题

  • ¥15 对于知识的学以致用的解释
  • ¥50 三种调度算法报错 有实例
  • ¥15 关于#python#的问题,请各位专家解答!
  • ¥200 询问:python实现大地主题正反算的程序设计,有偿
  • ¥15 smptlib使用465端口发送邮件失败
  • ¥200 总是报错,能帮助用python实现程序实现高斯正反算吗?有偿
  • ¥15 对于squad数据集的基于bert模型的微调
  • ¥15 为什么我运行这个网络会出现以下报错?CRNN神经网络
  • ¥20 steam下载游戏占用内存
  • ¥15 CST保存项目时失败