// NewWriter returns a Writer for w.
// If r already implements both io.ByteWriter and io.Writer, NewWriter returns w.
// Otherwise, w is wrapped to add the missing interfaces.
NewWriter returns a Writer for w.
If r already implements both io.ByteWriter and io.Writer, NewWriter returns w.
Otherwise, w is wrapped to add the missing interfaces.
// NewWriter returns a Writer for w . // If r already implements both io . ByteWriter and io . Writer NewWriter returns w . // Otherwise w is wrapped to add the missing interfaces .
func NewWriter(w io.Writer) Writer {
	if w, ok := w.(Writer); ok {
		return w
	}
	return &byteWriter{w}
}
func NewWriter ( w io . Writer ) Writer { if w , ok := w . ( Writer ) ; ok { return w } return & byteWriter { w } }
NewWriter returns a Writer for w.
If r already implements both io.ByteWriter and io.Writer, NewWriter returns w.
Otherwise, w is wrapped to add the missing interfaces.
NewWriter returns a Writer for w . If r already implements both io . ByteWriter and io . Writer NewWriter returns w . Otherwise w is wrapped to add the missing interfaces .