Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add colored output #6

Open
emmggi opened this issue May 9, 2019 · 2 comments
Open

Add colored output #6

emmggi opened this issue May 9, 2019 · 2 comments

Comments

@emmggi
Copy link

emmggi commented May 9, 2019

Asking if you could add colored output per column and row. Alternatively, if someone knows of a golang package to use to print colored columns let me know.

@remnestal
Copy link

I'm not a maintainer of this repo and I don't know if this feature is coming here. However, you could use faith/color to "color a string" using ANSI escape codes, which I'm assuming is what you're after.

Something like

t.AddLine(color.Cyan("John Smith."), color.Blue("Developer"), color.Red("Engineering"))

@emmggi
Copy link
Author

emmggi commented Jun 7, 2019

@remnestal i think i tried that and some other packages but they would mess up the formatting of the table. Columns would go into each other, it would cause a mess.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants