output

package
v0.0.0-...-852e987 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2018 License: MIT Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeWriter

func MakeWriter(w io.Writer) io.WriteCloser

MakeWriter creates a io.WriteCloser out of any io.Writer

func MakeWriterCloser

func MakeWriterCloser(w io.Writer, fn func() error) io.WriteCloser

MakeWriterCloser creates a io.WriterCloser

Types

type Markdown

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

Markdown renders a markdown document with a writer and some Options for rendering

func NewMarkdown

func NewMarkdown(w io.WriteCloser, options Options) *Markdown

NewMarkdown creates a Markdown with the correct dependencies

func (Markdown) Output

func (o Markdown) Output(docs []entry.Document) error

Output takes a slice of documents and generates a markdown document from them

type Options

type Options struct {
	Header    string
	Optionals bool
}

Options define certain setup values for rendering markdown

func NewApiaryOptions

func NewApiaryOptions(name string) Options

NewApiaryOptions make new Options for the Apiary format

type Plaintext

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

func NewPlaintext

func NewPlaintext(w io.WriteCloser) *Plaintext

func (Plaintext) Output

func (o Plaintext) Output(docs []entry.Document) error

Jump to

Keyboard shortcuts

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