I ran go fmt on the simple_test.go (hope you don't mind, if you do, I'll fix my format to match yours), and added save and FetchOne tests. Also added the create database function (so that we don't need to manually create database).
FetchOne isn't working, it correctly sends the request and it's getting a correct answer, but it is not marshalling the results.
Edit: FetchOne now works in the tests (my bad).
Also, should I defer a delete database, for cleanup?
P.S.: I'm completely open to comments on everything, don't mind me.
I ran go fmt on the simple_test.go (hope you don't mind, if you do, I'll fix my format to match yours), and added save and FetchOne tests. Also added the create database function (so that we don't need to manually create database).
FetchOne isn't working, it correctly sends the request and it's getting a correct answer, but it is not marshalling the results.Edit: FetchOne now works in the tests (my bad).
Also, should I defer a
delete database
, for cleanup?P.S.: I'm completely open to comments on everything, don't mind me.