//go:build darwin package libbox import "runtime/debug" func SetMemoryLimit() { debug.SetGCPercent(10) debug.SetMemoryLimit(30 * 1024 * 1024) }