table

package
v0.95.0 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Exporter

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

func NewExporter

func NewExporter(content string) (*Exporter, error)

func (*Exporter) Export

func (e *Exporter) Export(headers []string, format string) (interface{}, error)

Export supports inferred table headers or explicit positional column names. Blank and underscore names omit a column. Irregular rows fail rather than vanish.

type Parser

type Parser struct{ Document *html.Node }

func NewParser

func NewParser(content string) (*Parser, error)

func (*Parser) ParseTable

func (p *Parser) ParseTable() [][]string

ParseTable returns rendered cell text, including header rows, from one table.

Jump to

Keyboard shortcuts

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