meta

package
v0.0.0-...-216fc9e Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PreviewTagInfo

func PreviewTagInfo(body io.Reader) (tagInfo models.MediaPreview, err error)

PreviewTagInfo parses the given HTML io.Reader and returns the social media link preview meta tag information.

Types

type Preview

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

Jump to

Keyboard shortcuts

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