Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BinWrite ¶
func BinWrite(w io.Writer, m encoding.BinaryMarshaler) error
BinWrite calls m.MarshalBinary() and writes the result to w.
Types ¶
type FullWriter ¶
FullWriter is a utility type to couple with Marshal funcs.
func (*FullWriter) Close ¶
func (fw *FullWriter) Close() error
Close will run Close on the underlying Writer if it is a WriteCloser.
func (*FullWriter) WriteBytes ¶
func (fw *FullWriter) WriteBytes(b []byte, merr error) error
WriteBytes takes a buffer and an error, and writes it to the wrapped Writer inside of FullWriter. It's meant as a convenience, so you may call fw.WriteBytes(t.MarshalText())
Click to show internal directories.
Click to hide internal directories.