ms-runner/main.go
2024-06-22 21:29:19 +05:00

15 lines
267 B
Go

package main
import (
runner "runner/runner"
)
func main() {
err := runner.Init()
if(err != nil) {
panic(err)
}
limits := runner.Limits{Core: 3,Memory: 10000000, Time: 1000}
runner.IsolatedRun([]string{"/bin/echo", "123"}, limits)
}