Preprocess expands arguments that needs to be expanded and compiles a query into a single string.
(in string, args []interface{})
| 161 | // Preprocess expands arguments that needs to be expanded and compiles a query |
| 162 | // into a single string. |
| 163 | func Preprocess(in string, args []interface{}) (string, []interface{}) { |
| 164 | b, args := expandQuery([]byte(in), args) |
| 165 | return string(b), args |
| 166 | } |