eleven26

  • Home
  • Tags100
  • Archives346
  • Table of Contents
  • Overview

eleven26

346 posts
100 tags

Golang 常见问题

Posted on 2020-03-29
  1. 国内代理
1
2
go env -w GO111MODULE=on
go env -w GOPROXY=https://goproxy.cn,direct

https://github.com/goproxy/goproxy.cn/blob/master/README.zh-CN.md

  1. 获取一个目录下的所有依赖

旧项目没有 go modules,需要使用这个命令

1
go get -d ./...

... 表示是递归地获取所有目录。

how-to-get-all-dependency-files-for-a-program-using-golang

Go
Golang 里的 context
Golang bytes 包学习
© 2025 eleven26
Powered by Hexo & NexT.Mist
0%