reader

package
v0.0.0-...-b0009eb Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2021 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakePlaintext

func MakePlaintext(html []byte) ([]byte, error)

Types

type Article

type Article struct {
	readability.Article
	URL *url.URL
}

func Readable

func Readable(r io.Reader, u *url.URL) (Article, error)

Makes a given html body readable. Returns an error if it can't.

type Response

type Response struct {
	Body     io.Reader
	MIMEType string
}

func Fetch

func Fetch(url string) (Response, error)

Fetches the web page and stores the hash of the URL against the response body in cache. Returns an io.Reader.

Jump to

Keyboard shortcuts

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