diff --git a/build/.keep b/build/.keep new file mode 100644 index 0000000..e69de29 diff --git a/cmd/thunderlight/thunderlight.go b/cmd/thunderlight/thunderlight.go new file mode 100644 index 0000000..da29a2c --- /dev/null +++ b/cmd/thunderlight/thunderlight.go @@ -0,0 +1,4 @@ +package main + +func main() { +} diff --git a/deployment/.keep b/deployment/.keep new file mode 100644 index 0000000..e69de29 diff --git a/go.mod b/go.mod index e369f7e..41d3617 100644 --- a/go.mod +++ b/go.mod @@ -1,5 +1,3 @@ module github.com/thunderlight-shogi/engine go 1.22.0 - -require github.com/gorilla/mux v1.8.1 diff --git a/go.sum b/go.sum index 7128337..e69de29 100644 --- a/go.sum +++ b/go.sum @@ -1,2 +0,0 @@ -github.com/gorilla/mux v1.8.1 h1:TuBL49tXwgrFYWhqrNgrUNEY92u81SPhu7sTdzQEiWY= -github.com/gorilla/mux v1.8.1/go.mod h1:AKf9I4AEqPTmMytcMc0KkNouC66V3BtZ4qD5fmWSiMQ= diff --git a/internal/database/.keep b/internal/database/.keep new file mode 100644 index 0000000..e69de29 diff --git a/engine/engine.go b/internal/engine/engine.go similarity index 100% rename from engine/engine.go rename to internal/engine/engine.go diff --git a/main.go b/main.go deleted file mode 100644 index 46a128e..0000000 --- a/main.go +++ /dev/null @@ -1,7 +0,0 @@ -package main - -import "github.com/thunderlight-shogi/engine/website" - -func main() { - website.RunServer() -} diff --git a/website/.keep b/website/.keep new file mode 100644 index 0000000..e69de29 diff --git a/website/controllers/editor.go b/website/controllers/editor.go deleted file mode 100644 index 070e03e..0000000 --- a/website/controllers/editor.go +++ /dev/null @@ -1,17 +0,0 @@ -package website - -import ( - "fmt" - "io" - "net/http" -) - -func Editor(response http.ResponseWriter, request *http.Request, parameters map[string]string) { - id, ok := parameters["id"] - - if !ok { - io.WriteString(response, "ID should be set.") - } - - io.WriteString(response, fmt.Sprintf("ID is %s", id)) -} diff --git a/website/controllers/home.go b/website/controllers/home.go deleted file mode 100644 index be700b5..0000000 --- a/website/controllers/home.go +++ /dev/null @@ -1,10 +0,0 @@ -package website - -import ( - "io" - "net/http" -) - -func Home(response http.ResponseWriter, request *http.Request, parameters map[string]string) { - io.WriteString(response, "