Here are the facts:
- the language Go has a garbage collector.
- Java has a garbage collection
- a lot of Java programs have (subtle or not) memory leaks
As an example of a Java program that has memory leaks (not for the faint of heart, the question may shake your beliefs), see here about a little Java program called Tomcat that even has a “find leaks” button: Is there a way to avoid undeployment memory leaks in Tomcat?
So I am wondering: will programs written in Go exhibit the same kind of (subtle or not) memory leaks that some programs written in Java exhibit?