Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LinkPreview ¶
type LinkPreview struct { URL string `json:"url"` // URL of the page to preview Type string `json:"type"` // twitter card type of the page Author string `json:"author"` // author of the page Title string `json:"title"` // title of the page Description string `json:"description"` // description of the page MediaURL []string `json:"media_url"` // media URLs of the page // contains filtered or unexported fields }
LinkPreview contains brief information about a web page.
func Init ¶
func Init(url string) (lp LinkPreview, err error)
Init returns the brief information of the page given.
func (*LinkPreview) ShowHTML ¶
func (lp *LinkPreview) ShowHTML() string
ShowHTML will return HTML content of the page Just for debug
Click to show internal directories.
Click to hide internal directories.