3 ms·
Yes, you can do that by adding a direct dependency on foo. I started by talking about when there isn't a direct dependency on foo. I explicitly talked about ha
by skybrian 5y ago
Yes, you can do that by adding a direct dependency on foo. I started by talking about when there isn't a direct dependency on foo.
I explicitly talked about having a direct dependency at the end of the second paragraph.
- coder543 5y agoI'm not talking about direct dependencies. Direct and indirect are all listed in the go.mod file. If they aren't listed there, then they aren't in your final binary. If you delete indirect dependencies from the top-level go.mod, your project will fail to compile.