Skip to content

Latest commit

 

History

History

demo-list

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Output of go run cmd/demo-list/demo.go:

A Simple List:
--------------
* Game Of Thrones
* The Dark Tower

A Multi-level List:
-------------------
* Game Of Thrones
  * Winter
  * Is
  * Coming
    * This
    * Is
    * Known
* The Dark Tower
  * The Gunslinger

A List using the Style 'StyleBulletCircle':
-------------------------------------------
● Game Of Thrones
  ● Winter
  ● Is
  ● Coming
    ● This
    ● Is
    ● Known
● The Dark Tower
  ● The Gunslinger

A List using the Style 'StyleConnectedRounded':
-----------------------------------------------
╭─ Game Of Thrones
│  ├─ Winter
│  ├─ Is
│  ╰─ Coming
│     ├─ This
│     ├─ Is
│     ╰─ Known
╰─ The Dark Tower
   ╰─ The Gunslinger

A List using the Style 'funkyStyle':
------------------------------------
t GAME OF THRONES
|f WINTER
|m IS
|b COMING
| f THIS
| m IS
| b KNOWN
b THE DARK TOWER
 b THE GUNSLINGER

A List in HTML format:
----------------------
[HTML] <ul class="go-pretty-table">
[HTML]   <li>Game Of Thrones</li>
[HTML]   <ul class="go-pretty-table-1">
[HTML]     <li>Winter</li>
[HTML]     <li>Is</li>
[HTML]     <li>Coming</li>
[HTML]     <ul class="go-pretty-table-2">
[HTML]       <li>This</li>
[HTML]       <li>Is</li>
[HTML]       <li>Known</li>
[HTML]     </ul>
[HTML]   </ul>
[HTML]   <li>The Dark Tower</li>
[HTML]   <ul class="go-pretty-table-1">
[HTML]     <li>The Gunslinger</li>
[HTML]   </ul>
[HTML] </ul>

A List in Markdown format:
--------------------------
[Markdown]   * Game Of Thrones
[Markdown]     * Winter
[Markdown]     * Is
[Markdown]     * Coming
[Markdown]       * This
[Markdown]       * Is
[Markdown]       * Known
[Markdown]   * The Dark Tower
[Markdown]     * The Gunslinger