Column gets the column with name returns nil if not found
(name string)
| 64 | // Column gets the column with name |
| 65 | // returns nil if not found |
| 66 | func (t *DataTable) Column(name string) Column { |
| 67 | for _, col := range t.cols { |
| 68 | if col.Name() == name { |
| 69 | return col |
| 70 | } |
| 71 | } |
| 72 | return nil |
| 73 | } |
| 74 | |
| 75 | // ColumnIndex gets the index of the column with name |
| 76 | // returns -1 if not found |
no test coverage detected