Ver código fonte

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>
Augustin Grigorov 5 anos atrás
pai
commit
72114be857
1 arquivos alterados com 4 adições e 0 exclusões
  1. 4 0
      pages/common/go.md

+ 4 - 0
pages/common/go.md

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