Documentation
¶
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Link ¶
type Link struct {
URL string `json:"url,omitempty"`
Location string `json:"location,omitempty"`
Canonical string `json:"canonical,omitempty"`
Title string `json:"title,omitempty"`
Description string `json:"description,omitempty"`
}
Link class is information of URL
func New ¶
New returns new Link instance
Example ¶
link, err := New(context.Background(), "https://git.io/vFR5M", "")
if err != nil {
fmt.Println(err)
return
}
fmt.Println(link.Encode(StyleMarkdown))
Output: [GitHub - goark/ml: Make Link with Markdown Format](https://github.com/goark/ml)
func (*Link) CanonicalURL ¶
CanonicalURL returns the canonical URL.
Click to show internal directories.
Click to hide internal directories.