//go:build !linux package main import "os/exec" // NON LINUX BUILDS get the same isolation and the same soft memory hint, minus Pdeathsig, which is Linux only. // The difference is stated rather than papered over. Production is Linux. func applyWorkerLimits(cmd *exec.Cmd) { cmd.Env = append(cmd.Environ(), "GOMEMLIMIT=512MiB") } func selfLimit() {}