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