layouts

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrMissingField = errors.New("missing field")
	ErrUnkownLayout = errors.New("unkown layout")
)

Functions

This section is empty.

Types

type Config

type Config struct {
	LayoutType string `json:"type"`
	Pattern    string `json:"pattern"`
	// contains filtered or unexported fields
}

func (*Config) UnmarshalJSON

func (c *Config) UnmarshalJSON(data []byte) error

type Layout

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

Layout define default layout options Implements Layouter interface

func NewLayout

func NewLayout(p string) (*Layout, error)

NewLayout: create new layout struct input: pattern as string

func (*Layout) WriteEventTo

func (l *Layout) WriteEventTo(w io.Writer, e *events.Event) (n int64, err error)

type Layouter

type Layouter interface {
	events.EventWriterTo
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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