linting and go version update
This commit is contained in:
parent
f9a8e9666e
commit
ab0e40c695
@ -35,7 +35,6 @@ func main() {
|
||||
logger.Error(err.Error())
|
||||
os.Exit(1);
|
||||
}
|
||||
defer db.Close()
|
||||
|
||||
// run migrations
|
||||
migrate.Migrate(logger, db)
|
||||
|
10
flake.lock
generated
10
flake.lock
generated
@ -2,12 +2,12 @@
|
||||
"nodes": {
|
||||
"nixpkgs": {
|
||||
"locked": {
|
||||
"lastModified": 1731676054,
|
||||
"narHash": "sha256-OZiZ3m8SCMfh3B6bfGC/Bm4x3qc1m2SVEAlkV6iY7Yg=",
|
||||
"rev": "5e4fbfb6b3de1aa2872b76d49fafc942626e2add",
|
||||
"revCount": 708622,
|
||||
"lastModified": 1747179050,
|
||||
"narHash": "sha256-qhFMmDkeJX9KJwr5H32f1r7Prs7XbQWtO0h3V0a0rFY=",
|
||||
"rev": "adaa24fbf46737f3f1b5497bf64bae750f82942e",
|
||||
"revCount": 799423,
|
||||
"type": "tarball",
|
||||
"url": "https://api.flakehub.com/f/pinned/NixOS/nixpkgs/0.1.708622%2Brev-5e4fbfb6b3de1aa2872b76d49fafc942626e2add/0193363c-ab27-7bbd-af1d-3e6093ed5e2d/source.tar.gz"
|
||||
"url": "https://api.flakehub.com/f/pinned/NixOS/nixpkgs/0.1.799423%2Brev-adaa24fbf46737f3f1b5497bf64bae750f82942e/0196d1c3-1974-7bf1-bcf6-06620ac40c8c/source.tar.gz"
|
||||
},
|
||||
"original": {
|
||||
"type": "tarball",
|
||||
|
@ -5,7 +5,7 @@
|
||||
|
||||
outputs = { self, nixpkgs }:
|
||||
let
|
||||
goVersion = 22; # Change this to update the whole stack
|
||||
goVersion = 23; # Change this to update the whole stack
|
||||
|
||||
supportedSystems = [ "x86_64-linux" "aarch64-linux" "x86_64-darwin" "aarch64-darwin" ];
|
||||
forEachSupportedSystem = f: nixpkgs.lib.genAttrs supportedSystems (system: f {
|
||||
|
@ -57,6 +57,5 @@ func NewTestDatabase(tb testing.TB) *TestDatabase {
|
||||
}
|
||||
|
||||
func (tdb *TestDatabase) TearDown() {
|
||||
tdb.Db.Close()
|
||||
_ = tdb.container.Terminate(context.Background())
|
||||
}
|
||||
|
@ -5,7 +5,7 @@ import (
|
||||
)
|
||||
|
||||
var (
|
||||
ErrNotFound error = errors.New("Todo cannot be found")
|
||||
ErrNotFound error = errors.New("todo cannot be found")
|
||||
)
|
||||
|
||||
type TodoRow struct {
|
||||
|
@ -9,7 +9,7 @@ import (
|
||||
)
|
||||
|
||||
var (
|
||||
ErrNotFound error = errors.New("Todo cannot be found")
|
||||
ErrNotFound error = errors.New("todo cannot be found")
|
||||
)
|
||||
|
||||
type Todo struct {
|
||||
|
Loading…
x
Reference in New Issue
Block a user