internal

package
v0.9.2 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DumpWriter

type DumpWriter interface {
	io.Writer
	Flush() error
	Dump(rvs ...reflect.Value) error
}

DumpWriter is the interface that wraps the basic Write, Flush and Dump method.

func NewDumpWriter

func NewDumpWriter() DumpWriter

NewDumpWriter returns a new default DumpWriter that wraps tabwriter.

func NewDumpWriterWithSetupInfo

func NewDumpWriterWithSetupInfo(dwp *Param, wrap io.Writer) DumpWriter

NewDumpWriterWithSetupInfo returns a new default DumpWriter that wraps the Writer assigned by "wrap" arg.

type Param

type Param struct {
	MinWidth int
	TabWidth int
	Padding  int
	PadChar  byte
	Flags    uint
}

Param has configurations for DumpWriter.

Jump to

Keyboard shortcuts

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