Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Buffer ¶
type Buffer struct {
// contains filtered or unexported fields
}
Buffer is a buffer for writing to an io.Writer.
func NewBuffer ¶
NewBuffer creates a new buffer.
Parameters:
- w: The writer to write to.
Returns:
- *Buffer: The new buffer.
- *error: An error if the buffer could not be created.
func (*Buffer) Write ¶
Write writes data to the buffer.
Parameters:
- data: The data to write.
Returns:
- *errors.Err: An error if the data could not be written.
func (*Buffer) WriteEmptyLine ¶
WriteEmptyLine writes an empty line to the buffer.
Returns:
- *errors.Err: An error if the line could not be written.
Click to show internal directories.
Click to hide internal directories.