Documentation ¶
Overview ¶
Package opengraph provide feature that to fetch website information defined by Open Graph protcol from specified url The Open Graph protocol https://ogp.me/
Example (Fetch) ¶
ExampleFetch demonstrates fetch website information defined by OpenGraph protocol from specified url.
og, err := opengraph.Fetch("http://ogp.me") if err != nil { fmt.Println(err) } fmt.Printf("url: %s\n", og["url"]) fmt.Printf("title: %s\n", og["title"])
Output: url: http://ogp.me/ title: Open Graph protocol
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.