go: add go modules (#3935)

* Add GO modules init command

Add command for initialising a new GO module. More about go modules: https://blog.golang.org/using-go-modules

Co-authored-by: Lucas Gabriel Schneider <casdpa@gmail.com>
This commit is contained in:
Augustin Grigorov
2020-03-27 12:47:07 +00:00
committed by GitHub
parent a1622ec1be
commit 72114be857

View File

@@ -26,3 +26,7 @@
- Compile and install the current package: - Compile and install the current package:
`go install` `go install`
- Initialize a new module in the current directory:
`go mod init {{module_name}}`