Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I am new to Go and I want to start a new project.

In which cases should I adopt modules versus just sticking with $GOPATH?



Everything is moving to Go modules; unless you need compatibility with legacy tools I'd start updating and go ahead and use modules whenever possible. It will make your life easier in the future when you have to transition fewer things.




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

Search: