I am beginner in go and facing difficulty in understanding go/pkg folder.As suggested by documentation it contains pkg/mod and pkg/windowsamd_64. pkg/windowsamd_64 for storing compiled files. What happens if I have a file importing some external github modules and do go build on that.
- Will it go first to pkg/mod (but modules are compiled in pkg/windowsamd_64) to search for external modules
- Will it go first to pkg/windowsamd_64 (then what will be use of pkg/mod) to search for modules
- Will it go to {gopath}/src and do something from there
- pkg/mod is just a folder ,why do we call it cache as it will keep on filling or better when does it populate?