package runtime import "io" type RuntimeOption func(*Runtime) func WithStdout(stdout io.Writer) RuntimeOption { return func(r *Runtime) { r.stdout = stdout } } func WithStderr(stderr io.Writer) RuntimeOption { return func(r *Runtime) { r.stderr = stderr } }