Hacker News new | ask | show | jobs
by gkfasdfasdf 1523 days ago
Can you elaborate? What if you have multiple commands (main.go) with differing dependencies?
1 comments

They can (and usually should) exist in a single module. Each compiled artifact will link in only the dependencies it requires, not all of the dependencies of the parent module.