Closed gmelodie closed 4 years ago
Some of the logic such as the line below would either require a switch statement (3 times per function at the moment) or some clever trick that I don't know of. Manly because you can can't have a variable struct name really without a string variable for it and then using a switch statement to deduce the actual struct type in it's own case
There's a lot of duplicated code on
server.go
, we should remove that and make a function that receives a query and just does it. Also, if such a function is implemented, it would make sense to move it to thequeries
package.