At least on my machine, the first time I run 'go install -x .' it shows all the libraries that are not fresh being recompiled and cached in the $GOPATH/pkg directory. Later when changing just the main func and re-running with 'go run -x main.go' (or build) only the main package is recompiled, all other libraries have their cached version used. If you change a library you import go build/run will always recompile it but not cache it. As others have said, use go install to get the caching functionality.
--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.