getCol returns the ith column data as a string slice Uses pointer receiver to avoid copying mutex
(i int)
| 453 | // getCol returns the ith column data as a string slice |
| 454 | // Uses pointer receiver to avoid copying mutex |
| 455 | func (b *Buffer) getCol(i int) []string { |
| 456 | b.mu.RLock() |
| 457 | defer b.mu.RUnlock() |
| 458 | |
| 459 | result := make([]string, b.rowLen) |
| 460 | for rowI := 0; rowI < b.rowLen; rowI++ { |
| 461 | result[rowI] = b.cont[rowI][i] |
| 462 | } |
| 463 | return result |
| 464 | } |
| 465 | |
| 466 | // set ith column data type |
| 467 | func (b *Buffer) setColType(i int, t int) { |
no outgoing calls