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.
- Host: GitHub
- URL: https://github.com/junzki/link-preview
- Owner: Junzki
- License: bsd-3-clause
- Created: 2019-05-13T07:57:49.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-06-16T15:31:52.000Z (almost 7 years ago)
- Last Synced: 2024-06-20T05:22:11.444Z (almost 2 years ago)
- Topics: go, link-preview
- Language: Go
- Homepage:
- Size: 28.3 KB
- Stars: 14
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# link-preview
[](https://travis-ci.org/Junzki/link-preview)
[](https://codecov.io/gh/Junzki/link-preview)
[](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**_