Registry /
utility / dyatlov-go-opengraph-opengraph
Install & Compatibility
Where this runs
No compatibility data collected yet for this library.
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
opengraph
✓ github.com/dyatlov/go-opengraph/opengraph
Fetches and parses Open Graph tags from a URL.
package main
import (
"fmt"
"net/http"
"github.com/dyatlov/go-opengraph/opengraph"
)
func main() {
resp, _ := http.Get("https://example.com")
defer resp.Body.Close()
og := opengraph.NewOpenGraph()
og.HandleHTML(resp.Body)
fmt.Println(og.Title)
}
Debug
Known issues
No known issues recorded.
Upgrade
Version history
0.0.0-20220524092352-606d7b1e5f8alatest on pkg.go.dev
Audit
Dependencies
No dependency data recorded yet.