Return the error message as a string
(opts ...*Opts)
| 115 | |
| 116 | // Return the error message as a string |
| 117 | func (t *Table) MustFormat(opts ...*Opts) string { |
| 118 | str, err := t.Format(opts...) |
| 119 | if err != nil { |
| 120 | return "error: " + errors.Message(err) |
| 121 | } |
| 122 | return str |
| 123 | } |
| 124 | |
| 125 | func (t *Table) Format(opts ...*Opts) (string, error) { |
| 126 | mergedOpts := mergeTableOptions(opts...) |
no test coverage detected