From 6c885d25c23c06c9835fee0ac5a15b6f8a30c40a Mon Sep 17 00:00:00 2001 From: Brandon Dyck Date: Sun, 11 Oct 2020 12:21:17 -0600 Subject: [PATCH] Move front and back into internal --- {back => internal/back}/genstring.go | 0 {back => internal/back}/store.go | 0 {back => internal/back}/store_test.go | 2 +- {front => internal/front}/server.go | 2 +- main.go | 4 ++-- todo.txt | 1 - 6 files changed, 4 insertions(+), 5 deletions(-) rename {back => internal/back}/genstring.go (100%) rename {back => internal/back}/store.go (100%) rename {back => internal/back}/store_test.go (99%) rename {front => internal/front}/server.go (99%) diff --git a/back/genstring.go b/internal/back/genstring.go similarity index 100% rename from back/genstring.go rename to internal/back/genstring.go diff --git a/back/store.go b/internal/back/store.go similarity index 100% rename from back/store.go rename to internal/back/store.go diff --git a/back/store_test.go b/internal/back/store_test.go similarity index 99% rename from back/store_test.go rename to internal/back/store_test.go index 172911f..5eb178a 100644 --- a/back/store_test.go +++ b/internal/back/store_test.go @@ -9,7 +9,7 @@ import ( "github.com/matryer/is" "github.com/rickb777/date" - "gitlab.codemonkeysoftware.net/b/henwen/back" + "gitlab.codemonkeysoftware.net/b/henwen/internal/back" ) func TestNewMemoryStore(t *testing.T) { diff --git a/front/server.go b/internal/front/server.go similarity index 99% rename from front/server.go rename to internal/front/server.go index 15fb77b..fec64f7 100644 --- a/front/server.go +++ b/internal/front/server.go @@ -14,7 +14,7 @@ import ( hm "gitlab.codemonkeysoftware.net/b/hatmill" a "gitlab.codemonkeysoftware.net/b/hatmill/attribute" e "gitlab.codemonkeysoftware.net/b/hatmill/element" - "gitlab.codemonkeysoftware.net/b/henwen/back" + "gitlab.codemonkeysoftware.net/b/henwen/internal/back" ) const ( diff --git a/main.go b/main.go index 876bf51..84a0c5e 100644 --- a/main.go +++ b/main.go @@ -5,8 +5,8 @@ import ( "log" "net/http" - "gitlab.codemonkeysoftware.net/b/henwen/back" - "gitlab.codemonkeysoftware.net/b/henwen/front" + "gitlab.codemonkeysoftware.net/b/henwen/internal/back" + "gitlab.codemonkeysoftware.net/b/henwen/internal/front" ) func main() { diff --git a/todo.txt b/todo.txt index 2dca8a4..9341f33 100644 --- a/todo.txt +++ b/todo.txt @@ -2,7 +2,6 @@ Essential: ------------ Show response after submission Add a schema ID to the DB -Move front and back into internal Require earliest and latest dates for creation Ensure latest date is at least earliest date Ensure date span is within a maximum