Documentation
¶
Overview ¶
Package termlink implements a set of functions to create customizable, clickable hyperlinks in the terminal.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ColorLink ¶
Function LinkColor creates a colored clickable link in the terminal's stdout.
The function takes three required parameters: text, url and color and one optional parameter: shouldForce
The text parameter is the text to be displayed. The url parameter is the URL to be opened when the link is clicked. The color parameter is the color of the link. The shouldForce parameter indicates whether to force the non-hyperlink supported behavior (i.e., text (url))
The function returns the clickable link.
func Link ¶
Function Link creates a clickable link in the terminal's stdout.
The function takes two required parameters: text and url and one optional parameter: shouldForce
The text parameter is the text to be displayed. The url parameter is the URL to be opened when the link is clicked. The shouldForce parameter indicates whether to force the non-hyperlink supported behavior (i.e., text (url))
The function returns the clickable link.
func SupportsHyperlinks ¶
func SupportsHyperlinks() bool
Function SupportsHyperlinks returns true if the terminal supports hyperlinks.
The function returns true if the terminal supports hyperlinks, false otherwise.
Types ¶
This section is empty.
*