MCPcopy Create free account
hub / github.com/openclaw/gogcli / docsTableColumnCount

Function docsTableColumnCount

internal/cmd/docs_table_column_width.go:196–207  ·  view source on GitHub ↗
(table *docs.Table)

Source from the content-addressed store, hash-verified

194}
195
196func docsTableColumnCount(table *docs.Table) int {
197 if table == nil {
198 return 0
199 }
200 if table.Columns > 0 {
201 return int(table.Columns)
202 }
203 if len(table.TableRows) > 0 {
204 return len(table.TableRows[0].TableCells)
205 }
206 return 0
207}

Callers 1

RunMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected