cmd

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2023 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OutputTea      outputFormat = "tea"
	OutputPlain    outputFormat = "plain"
	OutputJSON     outputFormat = "json"
	OutputJSONFeed outputFormat = "jsonfeed"
	OutputHTML     outputFormat = "html"
)

Output formats the user can select.

Variables

This section is empty.

Functions

func Execute

func Execute()

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

Types

type BrittleParser

type BrittleParser struct {
	*goquery.Document
	// contains filtered or unexported fields
}

BrittleParser for old (pre-Go) tir HTML format; not guaranteed to be forwards-compatible. See https://github.com/lukasschwab/tir for an example of the supported document structure.

func NewParser

func NewParser(f *os.File) (*BrittleParser, error)

NewParser constructs a new BrittleParser for f without parsing it. See BrittleParser.Parse.

func (*BrittleParser) Parse

func (p *BrittleParser) Parse()

Parse the full table row by row.

Jump to

Keyboard shortcuts

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