Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type RedirectableWriter ¶
type RedirectableWriter struct {
// contains filtered or unexported fields
}
RedirectableWriter is a writer wrapping another underlying writer. You can change the underlying writer at runtime which is useful for logging.
func NewRedirectableWriter ¶
func NewRedirectableWriter(w io.Writer) *RedirectableWriter
NewRedirectableWriter creates a RedirectableWriter with the underlying writer w
func (*RedirectableWriter) SetWriter ¶
func (rw *RedirectableWriter) SetWriter(w io.Writer)
SetWriter changes the underlying writer to the new writer
Click to show internal directories.
Click to hide internal directories.