htmltables

package module
v0.0.0-...-8658d37 Latest Latest
Warning

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

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

README

htmltables

Status GoDoc codecov GoReportCard

htmltables is a simple golang package for parsing html tables

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Table

type Table struct {
	Attributes map[string]string
	Headers    []string
	Rows       [][]string
}

Table holds a simple table of headers and rows.

func Parse

func Parse(s string) ([]*Table, error)

Parse parses a html fragment or whole document looking for HTML tables. It converts all cells into text, stripping away any HTML content.

Jump to

Keyboard shortcuts

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