converter

package
v0.0.0-...-dc915fa Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2021 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Article

type Article struct {
	URL           string
	Content       string
	Title         string
	Author        string
	Excerpt       string
	Source        string
	Image         string
	AvgTimeString string
}

func NewArticle

func NewArticle(ctx context.Context,
	art readability.Article,
	url string,
	dwn htmllatex.ImageDownloader,
) (Article, error)

type Result

type Result struct {
	Filename    string
	ArticleName string
}

type Service

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

func New

func New(fp string, dirPrefix string) *Service

func (*Service) Convert

func (s *Service) Convert(ctx context.Context, url string) (*Result, error)

Jump to

Keyboard shortcuts

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