WithOutput option should take io.Writer as argument.

This commit is contained in:
Kiyon 2021-03-09 09:34:14 +08:00 committed by Christian Muehlhaeuser
parent 65e8067a82
commit ac36017f86
1 changed files with 1 additions and 1 deletions

2
tea.go
View File

@ -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
} }