From f338d8666318c646ab9b246186d205d438dba6d4 Mon Sep 17 00:00:00 2001 From: axolotlmaid Date: Wed, 25 Sep 2024 16:52:09 +0100 Subject: [PATCH] initial commit --- cmd/backend/main.go | 13 +++++++++++++ go.mod | 8 ++++++++ go.sum | 4 ++++ 3 files changed, 25 insertions(+) create mode 100644 cmd/backend/main.go create mode 100644 go.mod create mode 100644 go.sum diff --git a/cmd/backend/main.go b/cmd/backend/main.go new file mode 100644 index 0000000..1d4c0a5 --- /dev/null +++ b/cmd/backend/main.go @@ -0,0 +1,13 @@ +package main + +import ( + "log/slog" + "os" + + "github.com/lmittmann/tint" +) + +func main() { + logger := slog.New(tint.NewHandler(os.Stderr, nil)) + slog.SetDefault(logger) +} diff --git a/go.mod b/go.mod new file mode 100644 index 0000000..a3ffc84 --- /dev/null +++ b/go.mod @@ -0,0 +1,8 @@ +module backend + +go 1.23.1 + +require ( + github.com/joho/godotenv v1.5.1 // indirect + github.com/lmittmann/tint v1.0.5 // indirect +) diff --git a/go.sum b/go.sum new file mode 100644 index 0000000..29c8fa1 --- /dev/null +++ b/go.sum @@ -0,0 +1,4 @@ +github.com/joho/godotenv v1.5.1 h1:7eLL/+HRGLY0ldzfGMeQkb7vMd0as4CfYvUVzLqw0N0= +github.com/joho/godotenv v1.5.1/go.mod h1:f4LDr5Voq0i2e/R5DDNOoa2zzDfwtkZa6DnEwAbqwq4= +github.com/lmittmann/tint v1.0.5 h1:NQclAutOfYsqs2F1Lenue6OoWCajs5wJcP3DfWVpePw= +github.com/lmittmann/tint v1.0.5/go.mod h1:HIS3gSy7qNwGCj+5oRjAutErFBl4BzdQP6cJZ0NfMwE=