meta

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2021 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get added in v0.0.3

func Get(ctx context.Context, u string) (og models.OpenGraph, twitter models.Twitter, err error)

Get performs an HTTP get on the given URL and returns the relevant HTML meta.

Types

type Preview

type Preview struct {
	models.MediaPreview `json:"mediaPreview"`
	Redirect            string              `json:"redirect"`
	RedirectType        models.RedirectType `json:"redirectType"`
}

Preview represents the data structure placed into the Go HTML template when doing a redirect through JavaScript or HTML meta tags.

Jump to

Keyboard shortcuts

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