migrate
This commit is contained in:
@@ -6,12 +6,12 @@ type RuntimeOption func(*Runtime)
|
||||
|
||||
func WithStdout(stdout io.Writer) RuntimeOption {
|
||||
return func(r *Runtime) {
|
||||
r.stdout = stdout
|
||||
r.opts.Stdout = stdout
|
||||
}
|
||||
}
|
||||
|
||||
func WithStderr(stderr io.Writer) RuntimeOption {
|
||||
return func(r *Runtime) {
|
||||
r.stderr = stderr
|
||||
r.opts.Stderr = stderr
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user