I followed the steps here after I installed Go. However, running go run hello.go takes around 20 seconds for it to output “hello, world”. I’ve also tried reinstalling and excluding my Go folder from windows defender (the only antivirus I use). How do I fix this? Any help is appreciated.
Well executing isn’t the issue (it works fine), the problem is the long compile time. I really don’t think a simple hello world program would take more than 10 seconds to compile.
Ignoring the temp folder doesn’t help. I’ve also installed Go on my laptop which is also windows 10, using windows defender and I have the same exact issue. Could this be a bug?
I’ve changed the Go temp directory to somewhere else (as opposed to excluding %TEMP%) so it got excluded from Windows defender, which significantly improved compile time.