4 ms·
That used to be how you started a go project. Unfortunately, modern Go requires you to first setup a go.mod file with: go mod init <project name> Still si
by JetSetIlly 3y ago
That used to be how you started a go project. Unfortunately, modern Go requires you to first setup a go.mod file with:
go mod init <project name>
Still simple but for better or worse it's now a necessary part of the process.
- foldr 3y agoYou can still do go run main.go So no need to init a package if you are just using the stdlib and you’re in a hurry.
- JetSetIlly 3y agoI didn't know that. That's genuinely useful to know.