Skip to content
This repository has been archived by the owner on Aug 21, 2022. It is now read-only.
/ vgo Public archive
forked from golang/vgo

[mirror] Versioned Go Prototype

License

Notifications You must be signed in to change notification settings

saibing/vgo

 
 

Repository files navigation

vgo proxy

vgo包管理工具的代理服务器,支持常见的go语言库托管网站,如:

github.com
gopkg.in
golang.org
...

服务端安装部署

$ go get github.com/saibing/vgo
$ vgo
start vgo proxy server at http://127.0.0.1:9090

配置vgo.json

{
  "gopath": "/home/bingo/.gomod",
  "http": [
    "code.github.com",
  ],
  "replace": {
    "google.golang.org": "github.com/golang",
    "golang.org/x": "github.com/golang"
  }
}

vgo proxy本身采用了vgo的原型代码,在vgo代码的基础增加了proxy功能, 所以vgo proxy下载与管理包的原理与要求与vgo程序相同:

客户端配置

在客户端环境,配置很简单了,在使用go module管理包的go语言工程环境中,设置环境变量:

export GOPROXY=http://127.0.0.1:9090

About

[mirror] Versioned Go Prototype

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 82.1%
  • Shell 17.9%