{"repo":"savioxavier/termlink","free":true,"listed":false,"github":"https://github.com/savioxavier/termlink","clone":"git clone https://github.com/savioxavier/termlink.git","description":"Clickable links in the terminal for Go","language":"Go","stars":76,"topics":["go","golang","golang-package","hyperlink","sindresorhus","terminal","terminal-color","windows-terminal","termlink","cli"],"license":"MIT","category":"cli-tools","readme_excerpt":"termlink Clickable links in the terminal for Go Termlink is a Go package that allows you to create fully customizable clickable links in the terminal. It is the Go version of Sindre Sorhus' popular terminal-link library. It includes multiple features including dynamic and fully customizable colored links in terminal, along with smart hyperlink support detection. 🛠️ Install Using go get : --- 🔗 Usage - Basic regular link: - Customizable colored link: - Check if your current terminal supports hyperlinks: - Since termlink.Link returns a string, you can use it with your favorite text color formatting libraries such as fatih/color, mgutz/ansi, etc. Alternatively, you can use termlink.ColorLink as well. Note For unsupported terminals, the link will be printed in parentheses after the text (see below image) --- 🍵 Examples More examples can be found in the examples/ directory. For a quick demo, execute the following commands in your terminal: --- 🔮 Features - termlink.Link(text, url, [shouldForce]) - Creates a regular, clickable link in the terminal - For unsupported terminals, the link will be printed in parentheses after the text: Example Link (https://example.com) . - 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 - termlink.ColorLink(text, url, color, [shouldForce]) - Creates a clickable link in the terminal with custom color formatting - Examples","default_branch":null,"files":null,"tree":[],"storefront":"/r/savioxavier","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/savioxavier/termlink/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}