Hacker News new | past | comments | ask | show | jobs | submit login

I had to "go mod init" before go build worked.



Without a go.mod file, it will only compile when placed in the right place in the GOPATH, which Rob Pike presumably does.




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: