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.