DefaultTableFromStructSlice will be populate the pterm.DefaultTable with the values of the structs. The header will be set to the structs field name. Use .WithHasHeader() to color the header. The function will return the populated pterm.TablePrinter.
(structSlice any)
| 67 | // Use .WithHasHeader() to color the header. |
| 68 | // The function will return the populated pterm.TablePrinter. |
| 69 | func DefaultTableFromStructSlice(structSlice any) *pterm.TablePrinter { |
| 70 | return TableFromStructSlice(pterm.DefaultTable, structSlice) |
| 71 | } |
nothing calls this directly
no test coverage detected
searching dependent graphs…