oembed

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TypePhoto = "photo"
	TypeVideo = "video"
	TypeLink  = "link"
	TypeRich  = "rich"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Oembed

type Oembed struct {
	Client    *fetch.Client
	UserAgent string
}

func (*Oembed) Fetch

func (o *Oembed) Fetch(u *url.URL, out any) error

func (*Oembed) Find

func (o *Oembed) Find(doc *goquery.Document) (*url.URL, error)

type Response

type Response struct {
	Type    string
	Version string
	HTML    string
	Width   any
	Height  any
}

Jump to

Keyboard shortcuts

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