Documentation
¶
Overview ¶
Package contains a writer for writing objects as formatted lines by wrapping the "fmt" package in the standard library. This package has a minimal API and should not replace general use of the standard library package.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Writer ¶
type Writer struct {
// contains filtered or unexported fields
}
Writer formats and writes objects to the underlying writer as formatted lines.
func NewWriter ¶
NewWriter returns a writer for formating and writing objets to the underlying writer as formatted lines.
func (*Writer) Flush ¶
Flush flushes the underlying writer, if it has a Flush method. This writer itself does no buffering.
func (*Writer) WriteObject ¶
WriteObject formats and writes a single object to the underlying writer as a formatted line and appends the writer's line separator.
func (*Writer) WriteObjects ¶
WriteObjects formats and writes the given objets to the underlying writer as formatted lines and separates the objects using the writer's line separator.