LinkPreview

package module
Version: v0.0.0-...-4d94cb3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 16, 2019 License: BSD-3-Clause Imports: 2 Imported by: 0

README

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Preview

func Preview(link string, extraContent *http.Request) (*handlers.LinkPreviewContext, error)
func PreviewLink(link string, extraClient *http.Request) (*handlers.LinkPreviewContext, error)

Types

This section is empty.

Source Files

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL