lint

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2017 License: MIT Imports: 18 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Block

type Block struct {
	Context string        // parent content (if any) - e.g., paragraph -> sentence
	Text    string        // text content
	Scope   core.Selector // section selector
}

A Block represents a section of text.

func NewBlock

func NewBlock(ctx string, txt string, sel string) Block

NewBlock makes a new Block with prepared text and a Selector.

type Linter

type Linter struct{}

A Linter lints a File.

func (Linter) Lint

func (l Linter) Lint(src string, pat string) ([]core.File, error)

Lint src according to its format.

func (Linter) LintString added in v0.4.0

func (l Linter) LintString(src string) ([]core.File, error)

LintString src according to its format.

Jump to

Keyboard shortcuts

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