update readme: add hyperlink format

This commit is contained in:
xdrm-brackets 2019-01-27 17:04:45 +01:00
parent 455fcb1fe7
commit e553670836
1 changed files with 35 additions and 16 deletions

View File

@ -11,23 +11,25 @@ Simple utility written in `go` that extends the standard `fmt.Sprintf` and `fmt.
<!-- toc --> <!-- toc -->
- [(1) Format](#1-format) - [(1) Format](#1-format)
- [[Colorization]](#colorization) * [[Colorization]](#colorization)
- [Base format](#base-format) + [Base format](#base-format)
- [Example](#example) * [Example](#example)
- [Foreground only](#foreground-only) + [Foreground only](#foreground-only)
- [Example](#example-1) * [Example](#example-1)
- [Background only](#background-only) + [Background only](#background-only)
- [Example](#example-2) * [Example](#example-2)
- [[Markdown-like format]](#markdown-like-format) * [[Markdown-like format]](#markdown-like-format)
- [Bold format](#bold-format) + [Bold format](#bold-format)
- [Example](#example-3) * [Example](#example-3)
- [Italic format](#italic-format) + [Italic format](#italic-format)
- [Example](#example-4) * [Example](#example-4)
- [Underline format](#underline-format) + [Underline format](#underline-format)
- [Example](#example-5) * [Example](#example-5)
+ [Hyperlink format](#hyperlink-format)
* [Example](#example-6)
- [(2) Screenshot](#2-screenshot) - [(2) Screenshot](#2-screenshot)
- [Colorizing format example :](#colorizing-format-example-) * [Colorizing format example :](#colorizing-format-example-)
- [Markdown-like format example](#markdown-like-format-example) * [Markdown-like format example](#markdown-like-format-example)
- [(3) Incoming features](#3-incoming-features) - [(3) Incoming features](#3-incoming-features)
<!-- tocstop --> <!-- tocstop -->
@ -156,6 +158,23 @@ clifmt.Printf("normal text _underline text_ normal text")
#### Hyperlink format
```go
[<target text>](<target url>)
```
- `<target text>` is the text that will be displayed.
- `<target url>` is the url the hyperlink links to.
###### Example
```go
clifmt.Printf("normal text [hyper](link) normal text")
```
---- ----
## (2) Screenshot ## (2) Screenshot