demo

command
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 8, 2018 License: MIT Imports: 4 Imported by: 0

README

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

╔═══╦═════════╦════════════════════════════════════════════════════════════════════════════════════════════╗
║ # ║ FEATURE ║                                           SAMPLES                                          ║
╠═══╬═════════╬════════════════════════════════════════════════════════════════════════════════════════════╣
║ 1 ║ List    ║               ┌───────────────────┬───────────────────┬─────────────────────┐              ║
║   ║         ║               │ StyleDefault      │ StyleBulletCircle │ StyleConnectedLight │              ║
║   ║         ║               ├───────────────────┼───────────────────┼─────────────────────┤              ║
║   ║         ║               │ - Game Of Thrones │ ● Game Of Thrones │ ┌─ Game Of Thrones  │              ║
║   ║         ║               │ --- Winter        │   ● Winter        │ └─┬─ Winter         │              ║
║   ║         ║               │   - Is            │   ● Is            │   ├─ Is             │              ║
║   ║         ║               │   - Coming        │   ● Coming        │   ├─ Coming         │              ║
║   ║         ║               │   --- This        │     ● This        │   └─┬─ This         │              ║
║   ║         ║               │     - Is          │     ● Is          │     ├─ Is           │              ║
║   ║         ║               │     - Known       │     ● Known       │     └─ Known        │              ║
║   ║         ║               └───────────────────┴───────────────────┴─────────────────────┘              ║
║ 2 ║ Table   ║ ┌──────────────┬─────────────────────────────────────────────────────────────────────────┐ ║
║   ║         ║ │              │ #,First Name,Last Name,Salary,                                          │ ║
║   ║         ║ │              │ 1,Arya,Stark,3000,                                                      │ ║
║   ║         ║ │       As CSV │ 20,Jon,Snow,2000,"You know nothing\, Jon Snow!"                         │ ║
║   ║         ║ │              │ 300,Tyrion,Lannister,5000,                                              │ ║
║   ║         ║ │              │ ,,Total,10000,                                                          │ ║
║   ║         ║ ├──────────────┼─────────────────────────────────────────────────────────────────────────┤ ║
║   ║         ║ │              │ +-----+------------+-----------+--------+-----------------------------+ │ ║
║   ║         ║ │              │ |   # | FIRST NAME | LAST NAME | SALARY |                             | │ ║
║   ║         ║ │              │ +-----+------------+-----------+--------+-----------------------------+ │ ║
║   ║         ║ │              │ |   1 | Arya       | Stark     |   3000 |                             | │ ║
║   ║         ║ │ StyleDefault │ |  20 | Jon        | Snow      |   2000 | You know nothing, Jon Snow! | │ ║
║   ║         ║ │              │ | 300 | Tyrion     | Lannister |   5000 |                             | │ ║
║   ║         ║ │              │ +-----+------------+-----------+--------+-----------------------------+ │ ║
║   ║         ║ │              │ |     |            | TOTAL     |  10000 |                             | │ ║
║   ║         ║ │              │ +-----+------------+-----------+--------+-----------------------------+ │ ║
║   ║         ║ ├──────────────┼─────────────────────────────────────────────────────────────────────────┤ ║
║   ║         ║ │              │ ┌─────┬────────────┬───────────┬────────┬─────────────────────────────┐ │ ║
║   ║         ║ │              │ │   # │ FIRST NAME │ LAST NAME │ SALARY │                             │ │ ║
║   ║         ║ │              │ ├─────┼────────────┼───────────┼────────┼─────────────────────────────┤ │ ║
║   ║         ║ │              │ │   1 │ Arya       │ Stark     │   3000 │                             │ │ ║
║   ║         ║ │   StyleLight │ │  20 │ Jon        │ Snow      │   2000 │ You know nothing, Jon Snow! │ │ ║
║   ║         ║ │              │ │ 300 │ Tyrion     │ Lannister │   5000 │                             │ │ ║
║   ║         ║ │              │ ├─────┼────────────┼───────────┼────────┼─────────────────────────────┤ │ ║
║   ║         ║ │              │ │     │            │ TOTAL     │  10000 │                             │ │ ║
║   ║         ║ │              │ └─────┴────────────┴───────────┴────────┴─────────────────────────────┘ │ ║
║   ║         ║ ├──────────────┼─────────────────────────────────────────────────────────────────────────┤ ║
║   ║         ║ │              │ ┏━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━━┳━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓ │ ║
║   ║         ║ │              │ ┃   # ┃ FIRST NAME ┃ LAST NAME ┃ SALARY ┃                             ┃ │ ║
║   ║         ║ │              │ ┣━━━━━╋━━━━━━━━━━━━╋━━━━━━━━━━━╋━━━━━━━━╋━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┫ │ ║
║   ║         ║ │              │ ┃   1 ┃ Arya       ┃ Stark     ┃   3000 ┃                             ┃ │ ║
║   ║         ║ │    StyleBold │ ┃  20 ┃ Jon        ┃ Snow      ┃   2000 ┃ You know nothing, Jon Snow! ┃ │ ║
║   ║         ║ │              │ ┃ 300 ┃ Tyrion     ┃ Lannister ┃   5000 ┃                             ┃ │ ║
║   ║         ║ │              │ ┣━━━━━╋━━━━━━━━━━━━╋━━━━━━━━━━━╋━━━━━━━━╋━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┫ │ ║
║   ║         ║ │              │ ┃     ┃            ┃ TOTAL     ┃  10000 ┃                             ┃ │ ║
║   ║         ║ │              │ ┗━━━━━┻━━━━━━━━━━━━┻━━━━━━━━━━━┻━━━━━━━━┻━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛ │ ║
║   ║         ║ ├──────────────┼─────────────────────────────────────────────────────────────────────────┤ ║
║   ║         ║ │              │ ╔═════╦════════════╦═══════════╦════════╦═════════════════════════════╗ │ ║
║   ║         ║ │              │ ║   # ║ FIRST NAME ║ LAST NAME ║ SALARY ║                             ║ │ ║
║   ║         ║ │              │ ╠═════╬════════════╬═══════════╬════════╬═════════════════════════════╣ │ ║
║   ║         ║ │              │ ║   1 ║ Arya       ║ Stark     ║   3000 ║                             ║ │ ║
║   ║         ║ │  StyleDouble │ ║  20 ║ Jon        ║ Snow      ║   2000 ║ You know nothing, Jon Snow! ║ │ ║
║   ║         ║ │              │ ║ 300 ║ Tyrion     ║ Lannister ║   5000 ║                             ║ │ ║
║   ║         ║ │              │ ╠═════╬════════════╬═══════════╬════════╬═════════════════════════════╣ │ ║
║   ║         ║ │              │ ║     ║            ║ TOTAL     ║  10000 ║                             ║ │ ║
║   ║         ║ │              │ ╚═════╩════════════╩═══════════╩════════╩═════════════════════════════╝ │ ║
║   ║         ║ ├──────────────┼─────────────────────────────────────────────────────────────────────────┤ ║
║   ║         ║ │              │ ╭─────┬────────────┬───────────┬────────┬─────────────────────────────╮ │ ║
║   ║         ║ │              │ │   # │ FIRST NAME │ LAST NAME │ SALARY │                             │ │ ║
║   ║         ║ │              │ ├─────┼────────────┼───────────┼────────┼─────────────────────────────┤ │ ║
║   ║         ║ │              │ │   1 │ Arya       │ Stark     │   3000 │                             │ │ ║
║   ║         ║ │ StyleRounded │ │  20 │ Jon        │ Snow      │   2000 │ You know nothing, Jon Snow! │ │ ║
║   ║         ║ │              │ │ 300 │ Tyrion     │ Lannister │   5000 │                             │ │ ║
║   ║         ║ │              │ ├─────┼────────────┼───────────┼────────┼─────────────────────────────┤ │ ║
║   ║         ║ │              │ │     │            │ TOTAL     │  10000 │                             │ │ ║
║   ║         ║ │              │ ╰─────┴────────────┴───────────┴────────┴─────────────────────────────╯ │ ║
║   ║         ║ └──────────────┴─────────────────────────────────────────────────────────────────────────┘ ║
╚═══╩═════════╩════════════════════════════════════════════════════════════════════════════════════════════╝
Generated with go-pretty; MIT License; Copyright (c) 2018 jedib0t.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL