Instantly share code, notes, and snippets.
Disable garbage collection:
debug.SetGCPercent(-1)
Trigger garbage collection:
runtime.GC()