plaintext

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RenderOption

type RenderOption func(*Renderer)

func WithHeader

func WithHeader(withHeader bool) RenderOption

func WithMarkdown

func WithMarkdown() RenderOption

func WithVerbose

func WithVerbose(verbose bool) RenderOption

type Renderer

type Renderer struct {
	Verbose    bool
	WithHeader bool
	// contains filtered or unexported fields
}

func NewRenderer

func NewRenderer(opts ...RenderOption) *Renderer

func (*Renderer) RenderHeader

func (r *Renderer) RenderHeader(w io.Writer, status *mastodon.Status, isFirst bool) error

func (*Renderer) RenderStatus

func (r *Renderer) RenderStatus(w io.Writer, status *mastodon.Status) error

func (*Renderer) RenderThread

func (r *Renderer) RenderThread(w io.Writer, status *mastodon.Status, context *mastodon.Context) error

Jump to

Keyboard shortcuts

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