go mod note...

setting on the pc :
# go mod
export GO111MODULE=on
export GOPROXY=https://mirrors.aliyun.com/goproxy/
 
go mod:
1. initialization commands, files will be generated go.mod
go mod init <project>
2. tidy for update funciton:
go mod tidy
3.vendor, will depend on the vendor directory packet into
go mod vendor
4.verify, check and see if there are dependent modification
go mod verify
example:
https://blog.csdn.net/hbshhb/article/details/94661385
https://www.jianshu.com/p/bbed916d16ea
 
 

 

Guess you like

Origin www.cnblogs.com/sunnykwan/p/11504673.html