dongshao8471 2016-02-09 20:23
浏览 31
已采纳

Golang导入; 去获取mywebsite.com/mylibrary/function

Some of my code written for work is not suitable for public. So, I like to run within company's server. What would be the easiest way to retreat the library using "go get" from a private server. What would be easiest way to have library on Apache website?

Below are what I'd like to do.

Get my code

go get mysite.com/libraries/mylib1

Source

package main
import(
    "mysite.com/libraries/mylib1"
)

func main() {
    mylib1.Print()
}

Thank you!

  • 写回答

2条回答 默认 最新

  • douzai9405 2016-02-10 05:39
    关注

    I had the same problem what we did was just spin up our own GitLab server to hold all of the libraries/code.

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

报告相同问题?