MCPcopy
hub / github.com/cortexlabs/cortex / MustFormat

Method MustFormat

pkg/lib/table/table.go:117–123  ·  view source on GitHub ↗

Return the error message as a string

(opts ...*Opts)

Source from the content-addressed store, hash-verified

115
116// Return the error message as a string
117func (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
125func (t *Table) Format(opts ...*Opts) (string, error) {
126 mergedOpts := mergeTableOptions(opts...)

Callers 15

TableStringMethod · 0.95
MustPrintMethod · 0.95
nodeGroupResourcesTableFunction · 0.95
taskAPITableFunction · 0.95
getTaskJobFunction · 0.95
apiHistoryTableFunction · 0.95
batchAPITableFunction · 0.95
getBatchJobFunction · 0.95
realtimeAPITableFunction · 0.80
realtimeDescribeAPITableFunction · 0.80
asyncAPITableFunction · 0.80

Calls 2

FormatMethod · 0.95
MessageFunction · 0.92

Tested by

no test coverage detected