15 lines
267 B
Go
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)
|
|
}
|