forked from Mirrors/bubbletea
WithOutput option should take io.Writer as argument.
This commit is contained in:
parent
65e8067a82
commit
ac36017f86
2
tea.go
2
tea.go
|
@ -73,7 +73,7 @@ type ProgramOption func(*Program)
|
||||||
|
|
||||||
// WithOutput sets the output which, by default, is stdout. In most cases you
|
// WithOutput sets the output which, by default, is stdout. In most cases you
|
||||||
// won't need to use this.
|
// won't need to use this.
|
||||||
func WithOutput(output *os.File) ProgramOption {
|
func WithOutput(output io.Writer) ProgramOption {
|
||||||
return func(m *Program) {
|
return func(m *Program) {
|
||||||
m.output = output
|
m.output = output
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue