Skip to content

Instantly share code, notes, and snippets.

View Akagi201's full-sized avatar
🎯
Focusing

Bob Liu Akagi201

🎯
Focusing
View GitHub Profile
@Akagi201
Akagi201 / car.md
Created February 15, 2019 04:43
[car]
@Akagi201
Akagi201 / protobuf.md
Created January 31, 2019 03:22
[protobuf]
@Akagi201
Akagi201 / INSTALL.rst
Created January 15, 2019 03:51 — forked from LuoZijun/INSTALL.rst
以太坊客户端 Parity 的安装
@Akagi201
Akagi201 / home-assistant.md
Created January 3, 2019 10:59
[home-assistant]
@Akagi201
Akagi201 / stock-token-exchange.md
Created January 3, 2019 09:41
[stock-token-exchange]
  • 又发现一家币股交易所:
@Akagi201
Akagi201 / ganache.md
Created January 3, 2019 09:40
[ganache]

ganache-cli

@Akagi201
Akagi201 / go-mod.md
Created December 17, 2018 02:27
[go-mod]

go mod 项目管理

go 1.11 有了对模块的实验性支持,大部分的子命令都知道如何处理一个模块,比如 run build install get list mod 子命令,第三方工具可能会支持的晚一些。

到 go 1.12 会删除对 GOPATH 的支持,go get 命令也会变成只能获取模块,不能像现在这样直接获取一个裸包。

可以用环境变量 GO111MODULE 开启或关闭模块支持,它有三个可选值:off、on、auto,默认值是 auto。

开启go mod机制

请选择go1.11以上版本

@Akagi201
Akagi201 / signature.md
Created December 14, 2018 01:55
[signature]