From 5749739761d62749b5636ef6be72e4461d473d67 Mon Sep 17 00:00:00 2001 From: Jason Streifling Date: Thu, 5 Oct 2023 19:56:18 +0200 Subject: [PATCH] =?UTF-8?q?Versuch,=20eine=20=C3=BCbersichtlichere=20Struk?= =?UTF-8?q?tur=20einzuf=C3=BChren?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.go | 6 +++--- {db => packages/db}/db.go | 2 +- {server => packages/server}/server.go | 2 +- {types => packages/types}/types.go | 0 4 files changed, 5 insertions(+), 5 deletions(-) rename {db => packages/db}/db.go (97%) rename {server => packages/server}/server.go (95%) rename {types => packages/types}/types.go (100%) diff --git a/main.go b/main.go index f2212a5..f16135c 100644 --- a/main.go +++ b/main.go @@ -4,9 +4,9 @@ import ( "log" "net/http" - "streifling.com/jason/sicherheitsunterweisung/db" - "streifling.com/jason/sicherheitsunterweisung/server" - "streifling.com/jason/sicherheitsunterweisung/types" + "streifling.com/jason/sicherheitsunterweisung/packages/db" + "streifling.com/jason/sicherheitsunterweisung/packages/server" + "streifling.com/jason/sicherheitsunterweisung/packages/types" ) func main() { diff --git a/db/db.go b/packages/db/db.go similarity index 97% rename from db/db.go rename to packages/db/db.go index 65cfa25..2b8c8d0 100644 --- a/db/db.go +++ b/packages/db/db.go @@ -8,7 +8,7 @@ import ( "strings" "syscall" - "streifling.com/jason/sicherheitsunterweisung/types" + "streifling.com/jason/sicherheitsunterweisung/packages/types" "github.com/go-sql-driver/mysql" "golang.org/x/term" diff --git a/server/server.go b/packages/server/server.go similarity index 95% rename from server/server.go rename to packages/server/server.go index 8531aa3..3b2af7d 100644 --- a/server/server.go +++ b/packages/server/server.go @@ -5,7 +5,7 @@ import ( "html/template" "log" "net/http" - "streifling.com/jason/sicherheitsunterweisung/types" + "streifling.com/jason/sicherheitsunterweisung/packages/types" ) func DisplayForm(i *int64) http.HandlerFunc { diff --git a/types/types.go b/packages/types/types.go similarity index 100% rename from types/types.go rename to packages/types/types.go