format

package
v3.4.0 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2023 License: GPL-3.0 Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Formatter

type Formatter interface {
	Format(article *model.Article) (*bytes.Buffer, error)
	Value() string
}

Formatter is an interface for article formating

func NewJSONFormatter

func NewJSONFormatter() Formatter

NewJSONFormatter create new JSON formatter

func NewOutputFormatter

func NewOutputFormatter(output *model.OutputDef) (Formatter, error)

NewOutputFormatter create formatter from output plugin properties

func NewTemplateFormatter

func NewTemplateFormatter(key, format string) (Formatter, error)

NewTemplateFormatter create new template formatter

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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