ColumnIndex returns the index of the given column name. returns -1 if name not found -- see Try version for error message.
(name string)
| 86 | // ColumnIndex returns the index of the given column name. |
| 87 | // returns -1 if name not found -- see Try version for error message. |
| 88 | func (dt *Table) ColumnIndex(name string) int { |
| 89 | i, ok := dt.ColumnNameMap[name] |
| 90 | if !ok { |
| 91 | return -1 |
| 92 | } |
| 93 | return i |
| 94 | } |
| 95 | |
| 96 | // ColumnIndexTry returns the index of the given column name, |
| 97 | // along with an error if not found. |
no outgoing calls
no test coverage detected