You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[dev] ~/Study/go/helloworld$ go mod init github.com/you/helloworld
86
+
go: creating new go.mod: module github.com/you/helloworld
87
+
[dev] ~/Study/go/helloworld$ touch main.go
97
88
```
98
89
99
-
For `gr` shortcut, keep the folder name the executable name. For example, in the modules walkthrough above, I named package hellomod in the hellomod folder (instead of hello in the mod folder). A good convention.
90
+
edit main.go
91
+
```
92
+
package main
93
+
94
+
import (
95
+
"fmt"
96
+
)
97
+
98
+
func main() {
99
+
fmt.Println("Hello World!")
100
+
}
101
+
```
100
102
101
-
Notice this commit added tools gocode-mod and godef-mod
0 commit comments