You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+9Lines changed: 9 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -125,6 +125,15 @@ go run examples/start.go
125
125
- With formatting: `green bold`, `red bgGreen italic`, `italic blue bgGreen`, etc.
126
126
- The `shouldForce` is an optional boolean parameter which allows you to force the above unsupported terminal hyperlinks format `text (url)` to be printed, even in supported terminals
127
127
128
+
> `shouldForce` can be used in the following manner:
129
+
>
130
+
> ```go
131
+
> termlink.Link(text, url, true)
132
+
> termlink.ColorLink(text, url, color, true)
133
+
> ```
134
+
>
135
+
> You don't always need to specify this argument. By default, this parameter is `false`
136
+
128
137
- **`termlink.SupportsHyperlinks()`**:
129
138
130
139
- Returns `true` if the terminal supports hyperlinks, `false` otherwise.
0 commit comments