- Published on
golang实现私有代理
- Authors

- Name
- 刘十三
自定义域名
<!doctype html>
<html>
<head>
<meta
name="go-import"
content="liuxiaobo.pro/go-crate git https://github.com/liuxiaobopro/go-crate"
/>
</head>
<body>
go-crate
</body>
</html>
设置环境变量
go env -w GOPRIVATE=liuxiaobo.pro/*
go env -w GONOSUMDB=liuxiaobo.pro/*
go env -w GO111MODULE=on
go env -w GOPROXY=https://goproxy.cn,direct
git config --global url."git@github.com:".insteadOf "https://github.com/"
生成秘钥
ssh-keygen -t rsa
查看秘钥
cat ~/.ssh/id_rsa.pub