I am new to Go and trying to figure out how it manages memory consumption.
I have trouble with memory in one of my test projects. I don\'t understand why Go uses more an
To eventually (force) collect unused memory you must call runtime.GC().
variable = nil may make things unreachable and thus eligible for collection, but it per se doesn't free anything.
variable = nil