From 87f408efb51bef712590b4daf64b4bd6f7b149d7 Mon Sep 17 00:00:00 2001 From: Michael Thomson Date: Wed, 5 Feb 2025 16:27:10 -0500 Subject: [PATCH] makefile --- .gitignore | 2 ++ cmd/main.go | 7 +++++++ flake.nix | 2 ++ go.mod | 2 ++ go.sum | 2 ++ makefile | 5 +++++ 6 files changed, 20 insertions(+) create mode 100644 cmd/main.go create mode 100644 go.sum create mode 100644 makefile diff --git a/.gitignore b/.gitignore index bad5484..79eff84 100644 --- a/.gitignore +++ b/.gitignore @@ -25,3 +25,5 @@ go.work.sum .env .direnv + +tmp diff --git a/cmd/main.go b/cmd/main.go new file mode 100644 index 0000000..8117330 --- /dev/null +++ b/cmd/main.go @@ -0,0 +1,7 @@ +package main + +import "fmt" + +func main() { + fmt.Println("Hello, world") +} diff --git a/flake.nix b/flake.nix index 597acb5..6b12aa9 100644 --- a/flake.nix +++ b/flake.nix @@ -31,6 +31,8 @@ # https://github.com/golangci/golangci-lint golangci-lint + + sqlite ]; }; }); diff --git a/go.mod b/go.mod index b8d505f..02e5c6a 100644 --- a/go.mod +++ b/go.mod @@ -1,3 +1,5 @@ module gitea.michaelthomson.dev/mthomson/habits go 1.22.9 + +require github.com/mattn/go-sqlite3 v1.14.24 // indirect diff --git a/go.sum b/go.sum new file mode 100644 index 0000000..9dcdc9b --- /dev/null +++ b/go.sum @@ -0,0 +1,2 @@ +github.com/mattn/go-sqlite3 v1.14.24 h1:tpSp2G2KyMnnQu99ngJ47EIkWVmliIizyZBfPrBWDRM= +github.com/mattn/go-sqlite3 v1.14.24/go.mod h1:Uh1q+B4BYcTPb+yiD3kU8Ct7aC0hY9fxUwlHK0RXw+Y= diff --git a/makefile b/makefile new file mode 100644 index 0000000..2e4c440 --- /dev/null +++ b/makefile @@ -0,0 +1,5 @@ +build: + go build -o tmp/main cmd/main.go + +clean: + rm tmp/main