Documentation ¶
Index ¶
Constants ¶
View Source
const YouTubeOembedLink = "https://www.youtube.com/oembed?format=json&url=%s"
Variables ¶
This section is empty.
Functions ¶
func GetURLContent ¶
Types ¶
type LinkPreviewData ¶
type LinkPreviewData struct { Site string `json:"site"` Title string `json:"title"` ThumbnailURL string `json:"thumbnailUrl"` }
func GetLinkPreviewData ¶
func GetLinkPreviewData(link string) (previewData LinkPreviewData, err error)
func GetYoutubePreviewData ¶
func GetYoutubePreviewData(link string) (previewData LinkPreviewData, err error)
type OembedData ¶
type OembedData struct { ProviderName string `json:"provider_name"` Title string `json:"title"` ThumbnailURL string `json:"thumbnail_url"` }
func GetYoutubeOembed ¶
func GetYoutubeOembed(url string) (data OembedData, err error)
Click to show internal directories.
Click to hide internal directories.