Help us shape the future of Go! Take the 2026 Go Developer Survey

table

package
v0.89.0 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 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(htmlContent string) (*Exporter, error)

NewExporter creates a new exporter instance

func (*Exporter) Export

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

Export exports the data in the specified format ("json" or "csv")

type Parser

type Parser struct {
	Document *html.Node
}

Parser handles parsing of HTML tables

func NewParser

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

NewParser creates a new parser instance

func (*Parser) ParseTable

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

ParseTable parses the HTML table and returns a 2D array of strings

Jump to

Keyboard shortcuts

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