tabular

package
v0.0.0-...-2c3d6b8 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2023 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

EncoderName is name of the encoder in current package, i.e., Table. CSVFormat constant is parsed as EncoderName type here.

Functions

This section is empty.

Types

type Encoder

type Encoder struct {
	// contains filtered or unexported fields
}

Encoder is the manager for table encoder

func NewEncoder

func NewEncoder(out io.Writer, header bool) *Encoder

NewEncoder initializes new Encoder

func (*Encoder) Encode

func (e *Encoder) Encode(bookmarks []bookmark.Bookmark) error

Encode encodes the input bookmarks in tabular format to already set output stream

func (*Encoder) Filename

func (e *Encoder) Filename() string

Filename returns the file name string derived from output stream, iff the output stream is of pkg/files.File type.

func (*Encoder) String

func (e *Encoder) String() string

String returns the encoder name derived in EncoderName. This returns the same value as EncoderName, but using the receiver.

Jump to

Keyboard shortcuts

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