layout

package
v1.3.8 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2024 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Default = mustLoad("default")

Default ...

View Source
var NoPadding = newPadding(0, 0)

NoPadding ...

View Source
var NoPaddingLayout = ColumnLayout{Padding: NoPadding}

NoPaddingLayout ...

Functions

This section is empty.

Types

type ColumnLayout

type ColumnLayout struct {
	Width   uint     `yaml:"width,omitempty"`
	Padding *Padding `yaml:"padding,omitempty"`
	Sigil   string   `yaml:"sigil,omitempty"`
	Align   string   `yaml:"align,omitempty"`
}

ColumnLayout ...

func (ColumnLayout) EffectivePadding

func (cl ColumnLayout) EffectivePadding() Padding

EffectivePadding ...

func (ColumnLayout) Format

func (cl ColumnLayout) Format(name string) string

Format ...

func (ColumnLayout) Prefix

func (cl ColumnLayout) Prefix() string

Prefix ...

func (ColumnLayout) Suffix

func (cl ColumnLayout) Suffix() string

Suffix ...

type Layout

type Layout struct {
	Application ColumnLayout `yaml:"application"`
	Caller      ColumnLayout `yaml:"caller"`
	Level       ColumnLayout `yaml:"level"`
	Message     ColumnLayout `yaml:"message"`
	Source      ColumnLayout `yaml:"source"`
	Context     ColumnLayout `yaml:"context"`
	Timestamp   ColumnLayout `yaml:"timestamp"`
}

Layout ...

type Padding

type Padding struct {
	Left  *uint `yaml:"left,omitempty"`
	Right *uint `yaml:"right,omitempty"`
}

Padding ,,,

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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