MCPcopy Create free account
hub / github.com/codechenx/FastTableViewer / resizeCol

Method resizeCol

buffer.go:262–266  ·  view source on GitHub ↗

resizeCol adjusts the number of columns (thread-safe)

(n int)

Source from the content-addressed store, hash-verified

260
261// resizeCol adjusts the number of columns (thread-safe)
262func (b *Buffer) resizeCol(n int) {
263 b.mu.Lock()
264 defer b.mu.Unlock()
265 b.resizeColUnsafe(n)
266}
267
268// sortByStr sorts the buffer by column in string mode
269// colIndex: column to sort by

Callers 2

TestBuffer_ResizeColFunction · 0.80

Calls 1

resizeColUnsafeMethod · 0.95

Tested by 2

TestBuffer_ResizeColFunction · 0.64