mirror of https://github.com/jlelse/GoBlog
parent
c559cf7ea9
commit
ea0f1bfe05
3 changed files with 1 additions and 13 deletions
@ -1,10 +0,0 @@ |
||||
package main |
||||
|
||||
import ( |
||||
"runtime/debug" |
||||
) |
||||
|
||||
func initGC() { |
||||
// Set memory limit to 100 MB
|
||||
debug.SetMemoryLimit(100 * 1000 * 1000) |
||||
} |
Loading…
Reference in new issue