unixtable

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultPadding  = 3
	DefaultTabWidth = 2
	DefaultMinWidth = 1
)
View Source
const (
	Tag = "unixtable"
)

Variables

View Source
var (
	ErrTypeNotSupported = errors.New("type not supported")
)

Functions

func Marshal

func Marshal(a any) ([]byte, error)

Types

type Encoder

type Encoder struct {
	*tabwriter.Writer
	// contains filtered or unexported fields
}

func NewEncoder

func NewEncoder(w io.Writer) *Encoder

func (*Encoder) Encode

func (e *Encoder) Encode(a any) error

Jump to

Keyboard shortcuts

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