From 4d45a886d277f26caf9dd73c92d2383455c812e6 Mon Sep 17 00:00:00 2001 From: Grail Finder Date: Fri, 13 Jun 2025 17:21:19 +0300 Subject: [PATCH] Chore: project rename --- .gitignore | 1 + Makefile | 8 ++++---- go.mod | 2 +- handlers/actions.go | 10 +++++----- handlers/auth.go | 4 ++-- handlers/elements.go | 4 ++-- handlers/game.go | 2 +- handlers/handlers.go | 8 ++++---- handlers/middleware.go | 2 +- llmapi/main.go | 8 ++++---- main.go | 4 ++-- models/main.go | 2 +- wordloader/wordloader.go | 2 +- 13 files changed, 29 insertions(+), 28 deletions(-) diff --git a/.gitignore b/.gitignore index 04107cd..f8e7284 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ .aider* golias +gralias store.json config.toml diff --git a/Makefile b/Makefile index 8d40ad1..daa5e81 100644 --- a/Makefile +++ b/Makefile @@ -2,7 +2,7 @@ run: go build - ./golias start + ./gralias start init: go mod init @@ -26,10 +26,10 @@ gen: go generate ./... build-container: - docker build -t golias:master . + docker build -t gralias:master . stop-container: - docker rm -f golias 2>/dev/null && echo "old container removed" + docker rm -f gralias 2>/dev/null && echo "old container removed" run-container: stop-container - docker run --name=golias -v $(CURDIR)/store.json:/root/store.json -p 0.0.0.0:3000:3000 -d golias:master + docker run --name=gralias -v $(CURDIR)/store.json:/root/store.json -p 0.0.0.0:3000:3000 -d gralias:master diff --git a/go.mod b/go.mod index c765c78..7f8ba14 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module golias +module gralias go 1.24 diff --git a/handlers/actions.go b/handlers/actions.go index c5ae0ad..6de4866 100644 --- a/handlers/actions.go +++ b/handlers/actions.go @@ -5,11 +5,11 @@ import ( "encoding/json" "errors" "fmt" - "golias/broker" - "golias/llmapi" - "golias/models" - "golias/utils" - "golias/wordloader" + "gralias/broker" + "gralias/llmapi" + "gralias/models" + "gralias/utils" + "gralias/wordloader" "strings" ) diff --git a/handlers/auth.go b/handlers/auth.go index 00fb6dd..81b73d0 100644 --- a/handlers/auth.go +++ b/handlers/auth.go @@ -6,8 +6,8 @@ import ( "encoding/base64" "encoding/json" "fmt" - "golias/models" - "golias/utils" + "gralias/models" + "gralias/utils" "html/template" "net/http" "strings" diff --git a/handlers/elements.go b/handlers/elements.go index 279d9f9..b7a2281 100644 --- a/handlers/elements.go +++ b/handlers/elements.go @@ -3,8 +3,8 @@ package handlers import ( "errors" "fmt" - "golias/llmapi" - "golias/models" + "gralias/llmapi" + "gralias/models" "html/template" "net/http" ) diff --git a/handlers/game.go b/handlers/game.go index ae8262e..0a4382a 100644 --- a/handlers/game.go +++ b/handlers/game.go @@ -4,7 +4,7 @@ import ( "context" "errors" "fmt" - "golias/models" + "gralias/models" "html/template" "net/http" ) diff --git a/handlers/handlers.go b/handlers/handlers.go index 61dacd8..ead27f6 100644 --- a/handlers/handlers.go +++ b/handlers/handlers.go @@ -1,10 +1,10 @@ package handlers import ( - "golias/broker" - "golias/config" - "golias/models" - "golias/pkg/cache" + "gralias/broker" + "gralias/config" + "gralias/models" + "gralias/pkg/cache" "html/template" "log/slog" "net/http" diff --git a/handlers/middleware.go b/handlers/middleware.go index 2c8eecd..e66010b 100644 --- a/handlers/middleware.go +++ b/handlers/middleware.go @@ -5,7 +5,7 @@ import ( "crypto/hmac" "crypto/sha256" "encoding/base64" - "golias/models" + "gralias/models" "net/http" ) diff --git a/llmapi/main.go b/llmapi/main.go index 508927b..171abc5 100644 --- a/llmapi/main.go +++ b/llmapi/main.go @@ -4,10 +4,10 @@ import ( "encoding/json" "errors" "fmt" - "golias/broker" - "golias/config" - "golias/models" - "golias/pkg/cache" + "gralias/broker" + "gralias/config" + "gralias/models" + "gralias/pkg/cache" "io" "log/slog" "net/http" diff --git a/main.go b/main.go index f414608..fd0cb77 100644 --- a/main.go +++ b/main.go @@ -2,8 +2,8 @@ package main import ( "fmt" - "golias/config" - "golias/handlers" + "gralias/config" + "gralias/handlers" "log/slog" "net/http" "time" diff --git a/models/main.go b/models/main.go index ca0767a..0b11243 100644 --- a/models/main.go +++ b/models/main.go @@ -3,7 +3,7 @@ package models import ( "errors" "fmt" - "golias/utils" + "gralias/utils" "time" "github.com/rs/xid" diff --git a/wordloader/wordloader.go b/wordloader/wordloader.go index a24ecef..993b0f7 100644 --- a/wordloader/wordloader.go +++ b/wordloader/wordloader.go @@ -1,7 +1,7 @@ package wordloader import ( - "golias/models" + "gralias/models" "math/rand/v2" "os" "strings"