htmlmeta

package
v0.0.0-...-ca665c3 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2021 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MetaParser

type MetaParser struct {
	Root *html.Node
}

MetaParser html meta info parser

func New

func New(client *http.Client, url string) (*MetaParser, error)

New create new MetaParser

func (*MetaParser) GetMeta

func (p *MetaParser) GetMeta(name string, attr string) string

GetMeta get head meta tag

func (*MetaParser) GetOGPMeta

func (p *MetaParser) GetOGPMeta(prop string) string

GetOGPMeta get ogp meta tag

func (*MetaParser) GetTitle

func (p *MetaParser) GetTitle() string

GetTitle get website head title

Jump to

Keyboard shortcuts

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