From ac36017f86cc7fae3055e4fa11ff0041fbbae2f5 Mon Sep 17 00:00:00 2001 From: Kiyon Date: Tue, 9 Mar 2021 09:34:14 +0800 Subject: [PATCH] WithOutput option should take io.Writer as argument. --- tea.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tea.go b/tea.go index af6fef8..ab221da 100644 --- a/tea.go +++ b/tea.go @@ -73,7 +73,7 @@ type ProgramOption func(*Program) // WithOutput sets the output which, by default, is stdout. In most cases you // won't need to use this. -func WithOutput(output *os.File) ProgramOption { +func WithOutput(output io.Writer) ProgramOption { return func(m *Program) { m.output = output }