Skip to content
Myr

WithOutput option should take io.Writer as argument.

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Kiyon · committed by Christian Muehlhaeuser · parent 65e8067 · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:tea.go+1 added-1 removed
71 unmodified lines
72type ProgramOption func(*Program)7374// WithOutput sets the output which, by default, is stdout. In most cases you75// won't need to use this.76func WithOutput(output *os.File) ProgramOption {76func WithOutput(output io.Writer) ProgramOption {77 return func(m *Program) {78 m.output = output79 }80}
411 unmodified lines