htmlinfo

package module
v0.0.0-...-5f222b8 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrorLogger = log.New(os.Stderr, `htmlinfo/error/`, log.Lshortfile)
	DebugLogger = log.New(os.Stdout, `htmlinfo/debug/`, log.Lshortfile)
	Debug       = false
)

Functions

This section is empty.

Types

type HtmlInfo

type HtmlInfo struct {
	Url                  string
	Title                string
	Meta                 []map[string]string
	KinopoiskDescription string
}

func Parse

func Parse(r io.Reader, url string) (HtmlInfo, error)

func (*HtmlInfo) GetDescription

func (htmlInfo *HtmlInfo) GetDescription() string

func (*HtmlInfo) GetPosterUrl

func (htmlInfo *HtmlInfo) GetPosterUrl() string

func (*HtmlInfo) GetTitle

func (htmlInfo *HtmlInfo) GetTitle() string

func (*HtmlInfo) IsKinopoiskFilm

func (htmlInfo *HtmlInfo) IsKinopoiskFilm() bool

func (*HtmlInfo) KinopoiskFilmId

func (htmlInfo *HtmlInfo) KinopoiskFilmId() string

func (*HtmlInfo) KinopoiskFilmRatingGif

func (htmlInfo *HtmlInfo) KinopoiskFilmRatingGif() string

func (*HtmlInfo) Load

func (htmlInfo *HtmlInfo) Load(r io.Reader) error

func (*HtmlInfo) Save

func (htmlInfo *HtmlInfo) Save(w io.Writer) error

Jump to

Keyboard shortcuts

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