You can set the environment variable GOGC=off [1]
There doesn't actually seem to be a way to explicitly free memory though so I doubt this is actually used.
There doesn't actually seem to be a way to explicitly free memory though so I doubt this is actually used.
https://github.com/golang/go/issues/13761#issuecomment-16772...