Skip to content

Junzki/link-preview

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

link-preview

Build Status codecov 996.ICU Badge

A Go module gathers elements required for linkPreview.

Usage

package main

import (
	"fmt"
	"github.com/junzki/link-preview"
)

func main() {
    link := "http://custom-domain.local/case.html"
    
    result, err := LinkPreview.Preview(link, nil)
    if err != nil {
    	panic(err)
    }
    
    fmt.Println(result.Title)
}

References:

Thanks to aakash4525's py_link_Preview, this package is mostly inspired by his awesome work.

License

BSD 3-Clause License