htmltable

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Page

type Page struct {
	Tables        []*Table
	StartHeaderAt int
	// contains filtered or unexported fields
}

func New

func New(ctx context.Context, r io.Reader) (*Page, error)

func NewFromHttpResponse

func NewFromHttpResponse(resp *http.Response) (*Page, error)

func NewFromString

func NewFromString(r string) (*Page, error)

func (*Page) Each

func (page *Page) Each(a string, f func(a string)) error

func (*Page) Each2

func (page *Page) Each2(a, b string, f func(a, b string)) error

func (*Page) Each3

func (page *Page) Each3(a, b, c string, f func(a, b, c string)) error

func (*Page) Fill

func (page *Page) Fill(dst interface{}) error

func (*Page) FindWithColumns

func (page *Page) FindWithColumns(columns ...string) (*Table, error)

func (*Page) Init

func (tc *Page) Init(r io.Reader) error

func (*Page) Len

func (page *Page) Len() int

type ResponseError

type ResponseError struct {
	Response *http.Response
	Inner    error
}

func (*ResponseError) Error

func (re *ResponseError) Error() string

type Table

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

func (*Table) String

func (table *Table) String() string

Jump to

Keyboard shortcuts

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