internal

package
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 2, 2024 License: MIT Imports: 3 Imported by: 0

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

func NewBuffer(w io.Writer) (*Buffer, error)

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

func (b *Buffer) Write(data []byte) *gers.Err

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

func (b *Buffer) WriteEmptyLine() *gers.Err

WriteEmptyLine writes an empty line to the buffer.

Returns:

  • *errors.Err: An error if the line could not be written.

func (*Buffer) WriteLine

func (b *Buffer) WriteLine(str string) *gers.Err

WriteLine writes a line to the buffer.

Parameters:

  • str: The line to write.

Returns:

  • *errors.Err: An error if the line could not be written.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL