Documentation ¶
Overview ¶
Package gopengraph
For a full guide visit https://github.com/roperzh/gopengraph
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GopenGraph ¶
type GopenGraph struct { OgAttrs map[string]string Title string Description string Url string MandatoryAttrs []string }
func New ¶
func New(doc *goquery.Document) *GopenGraph
Build a new instance of the GopenGraph struct based on an already scrapped site
func NewFromUrl ¶
func NewFromUrl(url string) (*GopenGraph, error)
Build a new instance of the GopenGraph Struct with an url string
func (*GopenGraph) IsValid ¶
func (m *GopenGraph) IsValid() bool
Check if all MandatoryAttrs are present
func (*GopenGraph) PopulateAttrs ¶
func (m *GopenGraph) PopulateAttrs(doc *goquery.Document)
Store the page Title and Description
func (*GopenGraph) PopulateOgTags ¶
func (m *GopenGraph) PopulateOgTags(doc *goquery.Document)
Store all Open Graph tags (http://ogp.me/)
Click to show internal directories.
Click to hide internal directories.