ValidColumn reports if the column name is valid (part of the table columns).
(column string)
| 90 | |
| 91 | // ValidColumn reports if the column name is valid (part of the table columns). |
| 92 | func ValidColumn(column string) bool { |
| 93 | for i := range Columns { |
| 94 | if column == Columns[i] { |
| 95 | return true |
| 96 | } |
| 97 | } |
| 98 | return false |
| 99 | } |
| 100 | |
| 101 | // Note that the variables below are initialized by the runtime |
| 102 | // package on the initialization of the application. Therefore, |
no outgoing calls
no test coverage detected