(count, offset int)
| 101 | } |
| 102 | |
| 103 | func QueryVariadicOffset(count, offset int) string { |
| 104 | str := "(" |
| 105 | for i := 0; i < count; i++ { |
| 106 | str += fmt.Sprintf("$%d", i+offset+1) |
| 107 | if i < (count - 1) { |
| 108 | str += ", " |
| 109 | } |
| 110 | } |
| 111 | str += ")" |
| 112 | return str |
| 113 | } |
| 114 | |
| 115 | func minOfInts(a, b int) int { |
| 116 | if a <= b { |