Chore: project rename

This commit is contained in:
Grail Finder
2025-06-13 17:21:19 +03:00
parent 60d62773b8
commit 4d45a886d2
13 changed files with 29 additions and 28 deletions

1
.gitignore vendored
View File

@ -1,4 +1,5 @@
.aider* .aider*
golias golias
gralias
store.json store.json
config.toml config.toml

View File

@ -2,7 +2,7 @@
run: run:
go build go build
./golias start ./gralias start
init: init:
go mod init go mod init
@ -26,10 +26,10 @@ gen:
go generate ./... go generate ./...
build-container: build-container:
docker build -t golias:master . docker build -t gralias:master .
stop-container: 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 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

2
go.mod
View File

@ -1,4 +1,4 @@
module golias module gralias
go 1.24 go 1.24

View File

@ -5,11 +5,11 @@ import (
"encoding/json" "encoding/json"
"errors" "errors"
"fmt" "fmt"
"golias/broker" "gralias/broker"
"golias/llmapi" "gralias/llmapi"
"golias/models" "gralias/models"
"golias/utils" "gralias/utils"
"golias/wordloader" "gralias/wordloader"
"strings" "strings"
) )

View File

@ -6,8 +6,8 @@ import (
"encoding/base64" "encoding/base64"
"encoding/json" "encoding/json"
"fmt" "fmt"
"golias/models" "gralias/models"
"golias/utils" "gralias/utils"
"html/template" "html/template"
"net/http" "net/http"
"strings" "strings"

View File

@ -3,8 +3,8 @@ package handlers
import ( import (
"errors" "errors"
"fmt" "fmt"
"golias/llmapi" "gralias/llmapi"
"golias/models" "gralias/models"
"html/template" "html/template"
"net/http" "net/http"
) )

View File

@ -4,7 +4,7 @@ import (
"context" "context"
"errors" "errors"
"fmt" "fmt"
"golias/models" "gralias/models"
"html/template" "html/template"
"net/http" "net/http"
) )

View File

@ -1,10 +1,10 @@
package handlers package handlers
import ( import (
"golias/broker" "gralias/broker"
"golias/config" "gralias/config"
"golias/models" "gralias/models"
"golias/pkg/cache" "gralias/pkg/cache"
"html/template" "html/template"
"log/slog" "log/slog"
"net/http" "net/http"

View File

@ -5,7 +5,7 @@ import (
"crypto/hmac" "crypto/hmac"
"crypto/sha256" "crypto/sha256"
"encoding/base64" "encoding/base64"
"golias/models" "gralias/models"
"net/http" "net/http"
) )

View File

@ -4,10 +4,10 @@ import (
"encoding/json" "encoding/json"
"errors" "errors"
"fmt" "fmt"
"golias/broker" "gralias/broker"
"golias/config" "gralias/config"
"golias/models" "gralias/models"
"golias/pkg/cache" "gralias/pkg/cache"
"io" "io"
"log/slog" "log/slog"
"net/http" "net/http"

View File

@ -2,8 +2,8 @@ package main
import ( import (
"fmt" "fmt"
"golias/config" "gralias/config"
"golias/handlers" "gralias/handlers"
"log/slog" "log/slog"
"net/http" "net/http"
"time" "time"

View File

@ -3,7 +3,7 @@ package models
import ( import (
"errors" "errors"
"fmt" "fmt"
"golias/utils" "gralias/utils"
"time" "time"
"github.com/rs/xid" "github.com/rs/xid"

View File

@ -1,7 +1,7 @@
package wordloader package wordloader
import ( import (
"golias/models" "gralias/models"
"math/rand/v2" "math/rand/v2"
"os" "os"
"strings" "strings"