type IOStreams … // NewTestIOStreams returns a valid IOStreams and in, out, errout buffers for unit tests func NewTestIOStreams() (IOStreams, *bytes.Buffer, *bytes.Buffer, *bytes.Buffer) { … } // NewTestIOStreamsDiscard returns a valid IOStreams that just discards func NewTestIOStreamsDiscard() IOStreams { … }