I have a lib
module planned to be used across projects. It will depend on many other modules.
But not all the projects will use functions provided by lib
. I'm wondering if a project only depends on b/func B
provided by lib
, will it pack all the unused modules during project's build?
I understand go's smallest build unit is a pkg. In such case will ext-depency A module
and ext-depency N module
pack it into my project module
binary?
How can I test this?