olekukonko / tablewriter

ASCII table in golang

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Use Varidadic Functions

Wulfheart opened this issue · comments

commented

Always using a string array is in my opinion quite exhausting. Maybe you should consider switching to variadic function like table.SetHeader(s ...string).
I wanted to start a pull request but currently I'm unaware which internals are using the array arguments.
It might work to add a simple layer over the existing code.

Edit: I also made a little draft at #136.