meta

package
Version: v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type URLMetaData

type URLMetaData struct {
	Title       string    `meta:"og:title,title" json:"title"`
	Description string    `meta:"og:description,description" json:"description"`
	Type        string    `meta:"og:type" json:"type"`
	URL         url.URL   `meta:"og:url" json:"url"`
	Image       string    `meta:"og:image" json:"image"`
	Time        time.Time `meta:"article:published_time,parsely-pub-date" json:"time"`
	VideoWidth  int64     `meta:"og:video:width" json:"video_width"`
	VideoHeight int64     `meta:"og:video:height" json:"video_height"`
}

URLMetaData struct

func FetchData

func FetchData(url string) (*URLMetaData, error)

FetchData for fetch metadata from header of body

Source Files

Jump to

Keyboard shortcuts

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