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"` URL string `json:"url"` Title string `json:"title"` Description string `json:"description"` Determiner string `json:"determiner"` SiteName string `json:"site_name"` Locale string `json:"locale"` LocalesAlternate []string `json:"locales_alternate"` Images []*image.Image `json:"images"` Audios []*audio.Audio `json:"audios"` Videos []*video.Video `json:"videos"` 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.