Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OpenGraph ¶
type OpenGraph struct { Type string `json:"type,omitempty"` URL string `json:"url,omitempty"` Title string `json:"title,omitempty"` Description string `json:"description,omitempty"` Determiner string `json:"determiner,omitempty"` SiteName string `json:"site_name,omitempty"` Locale string `json:"locale,omitempty"` LocalesAlternate []string `json:"locales_alternate,omitempty"` Images []*image.Image `json:"images,omitempty"` Audios []*audio.Audio `json:"audios,omitempty"` Videos []*video.Video `json:"videos,omitempty"` Article *article.Article `json:"article,omitempty"` Book *book.Book `json:"book,omitempty"` Profile *profile.Profile `json:"profile,omitempty"` Music *music.Music `json:"music,omitempty"` // contains filtered or unexported fields }
OpenGraph contains facebook og data
func NewOpenGraph ¶
func NewOpenGraph() *OpenGraph
NewOpenGraph returns new instance of Open Graph structure
func (*OpenGraph) ProcessHTML ¶
ProcessHTML parses given html from Reader interface and fills up OpenGraph structure
func (*OpenGraph) ProcessMeta ¶
ProcessMeta processes meta attributes and adds them to Open Graph structure if they are suitable for that
Click to show internal directories.
Click to hide internal directories.