Explorar o código

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 %!s(int64=5) %!d(string=hai) anos
pai
achega
72114be857
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  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}}`