I am learning Go and how to structure a reasonable complex Go project. I can't seem to get a definitive answer on the following. When running build, will Go include all project packages in the build, or only those used?
Example: I'm developing a framework, which has multiple packages inside a /pkg folder. Some packages are for admin purposes and some are non admin. A non admin service would utilize the relevant packages for it's function, but exclude the admin ones. When building the service, will the service only build with the packages it has used from the framework?
Thank you!