domain

package
v0.0.0-...-87c96fa Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrDontExistAttr = errors.New("Attributes don't exist")
View Source
var ErrUrl = errors.New("unexpected url")

Functions

This section is empty.

Types

type Document

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

func NewDocument

func NewDocument(url *Url, doc *goquery.Document) *Document

func (*Document) GetAlternates

func (doc *Document) GetAlternates() ([]string, error)

func (*Document) GetCanonicals

func (doc *Document) GetCanonicals() ([]string, error)

func (*Document) GetDesc

func (doc *Document) GetDesc() ([]string, error)

func (*Document) GetKeywords

func (doc *Document) GetKeywords() ([]string, error)

func (*Document) GetTitle

func (doc *Document) GetTitle() []string

func (*Document) GetUrl

func (doc *Document) GetUrl() Url

type MetaInfo

type MetaInfo struct {
	Url         Url
	Title       []string
	Description []string
	Keywords    []string
	Canonical   []string
	Alternate   []string
}

type Url

type Url struct {
	Url string
}

func NewUrl

func NewUrl(url string) (*Url, error)

Jump to

Keyboard shortcuts

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