4 ms·
I had to "go mod init" before go build worked.
by gauchojs 6y ago
I had to "go mod init" before go build worked.
- majewsky 6y agoWithout a go.mod file, it will only compile when placed in the right place in the GOPATH, which Rob Pike presumably does.