pre migrate
This commit is contained in:
17
internal/runtime/options.go
Normal file
17
internal/runtime/options.go
Normal file
@@ -0,0 +1,17 @@
|
||||
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
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user