support print with >>w, for io.Writer w.