plywood

package
v0.0.0-...-83fe61a Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PrintDefaults

func PrintDefaults()

func TestCustomFormat

func TestCustomFormat(format CustomFormat) error

Types

type CustomFormat

type CustomFormat struct {
	Regex          string
	TimeFormat     string
	ExampleLine    string
	ExpectedOutput string
}

type Plywood

type Plywood struct {
	IncludeRelativeTime bool
	IncludeAbsoluteTime bool
	// contains filtered or unexported fields
}

func DefaultPlywood

func DefaultPlywood() *Plywood

func PlywoodFromFormatters

func PlywoodFromFormatters(formatters []CustomFormat) *Plywood

func (*Plywood) AddReader

func (p *Plywood) AddReader(readerName string, reader io.Reader)

func (*Plywood) AddTimeFormat

func (p *Plywood) AddTimeFormat(regex, layout string)

func (*Plywood) Read

func (p *Plywood) Read(buf []byte) (n int, err error)

Jump to

Keyboard shortcuts

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