Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LinkPreview ¶
type LinkPreview struct {
URL string
Title bool
Description bool
Image bool
SiteName bool
Favicon bool
Timeout time.Duration
UserAgent string
}
func New ¶
func New(url string, opts ...Option) *LinkPreview
func (*LinkPreview) GenerateLinkPreview ¶
func (l *LinkPreview) GenerateLinkPreview() ([]byte, error)
type Option ¶
type Option func(*LinkPreview)
func WithDescription ¶
func WithFavicon ¶
func WithSiteName ¶
func WithTimeout ¶
func WithUserAgent ¶
Click to show internal directories.
Click to hide internal directories.