(when interface{}, then interface{})
| 49 | } |
| 50 | |
| 51 | func newWhenPart(when interface{}, then interface{}) whenPart { |
| 52 | return whenPart{newPart(when), newPart(then)} |
| 53 | } |
| 54 | |
| 55 | // caseData holds all the data required to build a CASE SQL construct |
| 56 | type caseData struct { |