Comments (5)
I think I understand your ask here, but can you share an example of how you'd like the output to look like?
from go-pretty.
Never mind. I think this can be done. Will look into it.
from go-pretty.
Something like this:
+-----+------------+-----------+--------+-----------------------------+
| # | FIRST NAME | LAST NAME | SALARY | |
+-----+------------+-----------+--------+-----------------------------+
| 1 | Arya | Stark | 3000 | |
| 20 | Jon | Snow | 2000 | You know nothing, Jon Snow! |
+-----+------------+-----------+--------+-----------------------------+
| 300 | Tyrion | Lannister | 5000 | |
+-----+------------+-----------+--------+-----------------------------+
| | | TOTAL | 10000 | |
+-----+------------+-----------+--------+-----------------------------+
Marking the line between Jon and Tyrion as separator with some method call
from go-pretty.
Hey @guumaster, I've added support for appending Separator rows at will. However, please take a look at the caveats listed in the PR @ #101. The PR's description also contains sample code and output. Lemme know if this works, and if you need anything else.
Hope this helps! 👍
from go-pretty.
This is great. Thank you very much. 👍
from go-pretty.
Related Issues (20)
- Table - Allow `RenderCsv` to be formatted with tabs instead of comma HOT 5
- Markdown table row with multiline string adds <br/> HOT 2
- column auto merge have minor wrong behavior HOT 3
- Why carriage return character '\r' is dropped when rendering? HOT 6
- The upgrade from v6.4.0 to v6.4.1 results in empty table content when used in our product. HOT 10
- Github lacks enthusiasm reports, which would be necessary with your go-pretty!!! Absolutely fantastic!!! HOT 1
- Auto merge sample in the docs does not separate header rows as shown HOT 1
- Calling SetRowPainter() will not compile HOT 3
- Automerge does not work in HTML rendered by table HOT 4
- Automatic right alignment of number-cells only when number in each row HOT 5
- Last column's header ignores ColumnConfig.AlignHeader HOT 1
- Cell alignment based on content like in Excel HOT 11
- Table.SortBy can't handle empty cells HOT 1
- regexp no longer required HOT 1
- How to print table in the middle terminal HOT 1
- Paging result not expected HOT 2
- Merging not all possible cells in a row HOT 2
- Paging is set when row/column cell merge is set at the same time, missing some cell data HOT 2
- Nested Table Structure HOT 4
- Allow removal of trackers and clearing of progress
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from go-pretty.