ValidColumn reports if the column name is valid (part of the table columns).
(column string)
| 70 | |
| 71 | // ValidColumn reports if the column name is valid (part of the table columns). |
| 72 | func ValidColumn(column string) bool { |
| 73 | for i := range Columns { |
| 74 | if column == Columns[i] { |
| 75 | return true |
| 76 | } |
| 77 | } |
| 78 | return false |
| 79 | } |
| 80 | |
| 81 | // Note that the variables below are initialized by the runtime |
| 82 | // package on the initialization of the application. Therefore, |
no outgoing calls
no test coverage detected