Documentation ¶
Overview ¶
Package rows makes CLI output pretty
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TabRowWriter ¶
TabRowWriter struct is defining a new struct type called `TabRowWriter`. This struct is used to implement the `Writer` interface. It has a single field, `tabwriter.Writer`, which is embedded within the struct. This allows the `TabRowWriter` struct to have access to all the methods and fields of the embedded `tabwriter.Writer`.
func (*TabRowWriter) Write ¶
func (w *TabRowWriter) Write(record []string) error
Write method is implementing the `Write` method of the `Writer` interface for the `TabRowWriter` struct. It takes a slice of strings called `record` as a parameter and returns an error.
type Writer ¶
Writer is defining an interface called `Writer`
func NewTabRowWriter ¶
NewTabRowWriter is a function that creates a new instance of the `TabRowWriter` struct, which implements the `Writer` interface. It takes a pointer to a `tabwriter.Writer` as a parameter and returns a `Writer` interface.