Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Audio ¶
type Audio struct { URL string `json:"url"` Type string `json:"type"` Duration float64 `json:"duration"` DurationPretty string `json:"duration_pretty"` Size int `json:"size"` SizePretty string `json:"size_pretty"` }
Audio is the struct that encapsulates the extracted metadata from <audio> tags
type Image ¶
type Image struct { URL string `json:"url"` Type string `json:"type"` Width int `json:"width"` Height int `json:"height"` Size int `json:"size"` SizePretty string `json:"size_pretty"` }
Image is the struct that encapsulates the extracted metadata from <img> tags
type Metadata ¶
type Metadata struct { Audio Audio `json:"audio"` Author string `json:"author"` CanonicalURL string `json:"canonical_url"` CleanURL string `json:"clean_url"` Date string `json:"date"` Description string `json:"description"` FaviconURL string `json:"favicon_url"` FeedURLs []string `json:"feed_url"` HTML string `json:"html"` IsReadable bool `json:"is_readable"` Kind string `json:"kind"` Lang string `json:"lang"` LeadImageInMeta bool `json:"lead_image_in_meta"` LeadImageURL string `json:"lead_image_url"` Meta Meta `json:"meta"` Publisher string `json:"publisher"` ReadableByline string `json:"readable_byline"` ReadableExcerpt string `json:"readable_excerpt"` ReadableHTML string `json:"readable_html"` ReadableImage string `json:"readable_image"` ReadableLang string `json:"readable_lang"` ReadableLength int `json:"readable_length"` ReadableSiteName string `json:"readable_site_name"` ReadableText string `json:"readable_text"` ReadableTitle string `json:"readable_title"` SiteName string `json:"site_name"` Title string `json:"title"` URL string `json:"url"` Video Video `json:"video"` Dynamic map[string]any `json:"dynamic"` }
Metadata is the struct that encapsulates the extracted metadata.
type Video ¶
type Video struct { URL string `json:"url"` Type string `json:"type"` Duration float64 `json:"duration"` DurationPretty string `json:"duration_pretty"` Width int `json:"width"` Height int `json:"height"` Size int `json:"size"` SizePretty string `json:"size_pretty"` }
Video is the struct that encapsulates the extracted metadata from <video> tags
Click to show internal directories.
Click to hide internal directories.