An open API service indexing awesome lists of open source software.

https://github.com/junzki/link-preview

A link-preview library written in Go.
https://github.com/junzki/link-preview

go link-preview

Last synced: 11 months ago
JSON representation

A link-preview library written in Go.

Awesome Lists containing this project

README

          

# link-preview

[![Build Status](https://travis-ci.org/Junzki/link-preview.svg?branch=master)](https://travis-ci.org/Junzki/link-preview)
[![codecov](https://codecov.io/gh/Junzki/link-preview/branch/master/graph/badge.svg)](https://codecov.io/gh/Junzki/link-preview)
[![996.ICU Badge](https://img.shields.io/badge/link-996.icu-%23FF4D5B.svg?style=flat-square)](https://996.icu/#/en_US)

A Go module gathers elements required for linkPreview.

## Usage
```go
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.

[aakash4525]: https://github.com/aakash4525
[py_link_Preview]: https://github.com/aakash4525/py_link_preview

## License
_**BSD 3-Clause License**_