parser

package
v0.0.0-...-3fd4d17 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Chunk

type Chunk struct {
	Ready bool
	// contains filtered or unexported fields
}

func (*Chunk) Active

func (c *Chunk) Active() bool

func (*Chunk) Add

func (c *Chunk) Add(s string) bool

func (*Chunk) Format

func (c *Chunk) Format() string

func (*Chunk) Reset

func (c *Chunk) Reset()

type Content

type Content interface {
	Add(string) bool
	Format() string
	Reset()
	Active() bool
}

func NewContent

func NewContent(s string) Content

type List

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

func (*List) Active

func (l *List) Active() bool

func (*List) Add

func (l *List) Add(s string) bool

func (*List) Format

func (l *List) Format() string

func (*List) Reset

func (l *List) Reset()

type Paragraph

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

func (*Paragraph) Active

func (p *Paragraph) Active() bool

func (*Paragraph) Add

func (p *Paragraph) Add(s string) bool

func (*Paragraph) Format

func (p *Paragraph) Format() string

func (*Paragraph) Reset

func (p *Paragraph) Reset()

type Parser

type Parser struct {
	Log    *zap.Logger
	Writer io.Writer
	// contains filtered or unexported fields
}

func New

func New(fp io.Reader, w io.Writer, l *zap.Logger) *Parser

func (*Parser) Generate

func (p *Parser) Generate()

Jump to

Keyboard shortcuts

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