Update imports

This commit is contained in:
Achim Rohn
2025-11-15 12:16:59 +01:00
parent 18d05566e2
commit 0db7fd5a33
15 changed files with 20 additions and 20 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
package about
import (
. "ersteller-lib"
. "git.gorlug.de/code/ersteller"
. "maragu.dev/gomponents"
. "maragu.dev/gomponents/html"
+1 -1
View File
@@ -1,7 +1,7 @@
package contact
import (
. "ersteller-lib"
. "git.gorlug.de/code/ersteller"
. "maragu.dev/gomponents"
. "maragu.dev/gomponents/html"
+1 -1
View File
@@ -1,8 +1,8 @@
package create
import (
. "ersteller-lib"
"fmt"
. "git.gorlug.de/code/ersteller"
"git.gorlug.de/code/ersteller/starter/env"
"log"
"os"
+1 -1
View File
@@ -1,7 +1,7 @@
package schema
import (
ersteller_ent "ersteller-lib/schema/ent"
ersteller_ent "git.gorlug.de/code/ersteller/schema/ent"
"entgo.io/ent"
"entgo.io/ent/schema/edge"
+1 -1
View File
@@ -1,7 +1,7 @@
package schema
import (
"ersteller-lib/schema/ent"
"git.gorlug.de/code/ersteller/schema/ent"
"entgo.io/ent"
"entgo.io/ent/schema/edge"
+1 -1
View File
@@ -1,7 +1,7 @@
package schema
import (
"ersteller-lib/schema/ent"
"git.gorlug.de/code/ersteller/schema/ent"
"entgo.io/ent"
"entgo.io/ent/schema/field"
+1 -3
View File
@@ -4,7 +4,7 @@ go 1.25.0
require (
entgo.io/ent v0.14.5
ersteller-lib v0.0.0
git.gorlug.de/code/ersteller v0.0.0-20251115110439-18d05566e2fc
github.com/gorilla/sessions v1.4.0
github.com/joho/godotenv v1.5.1
golang.org/x/oauth2 v0.30.0
@@ -49,5 +49,3 @@ require (
golang.org/x/tools v0.36.0 // indirect
maragu.dev/gomponents-htmx v0.6.1 // indirect
)
replace ersteller-lib => ..
+2
View File
@@ -4,6 +4,8 @@ cloud.google.com/go/compute/metadata v0.3.0 h1:Tz+eQXMEqDIKRsmY3cHTL6FVaynIjX2Qx
cloud.google.com/go/compute/metadata v0.3.0/go.mod h1:zFmK7XCadkQkj6TtorcaGlCW1hT1fIilQDwofLpJ20k=
entgo.io/ent v0.14.5 h1:Rj2WOYJtCkWyFo6a+5wB3EfBRP0rnx1fMk6gGA0UUe4=
entgo.io/ent v0.14.5/go.mod h1:zTzLmWtPvGpmSwtkaayM2cm5m819NdM7z7tYPq3vN0U=
git.gorlug.de/code/ersteller v0.0.0-20251115110439-18d05566e2fc h1:oin+Mm/Z9FaR0To40MDGrFsEdK7s7FDaC9vImeyvMdg=
git.gorlug.de/code/ersteller v0.0.0-20251115110439-18d05566e2fc/go.mod h1:1pFeoQnWLWVcAfSPCq0Fwr+cJ6gqiW475B8Mt2Kuk7Y=
github.com/DATA-DOG/go-sqlmock v1.5.0 h1:Shsta01QNfFxHCfpW6YH2STWB0MudeXXEWMr20OEh60=
github.com/DATA-DOG/go-sqlmock v1.5.0/go.mod h1:f/Ixk793poVmq4qj/V1dPUg2JEAKC73Q5eFN3EC/SaM=
github.com/agext/levenshtein v1.2.3 h1:YB2fHEn0UJagG8T1rrWknE3ZQzWM06O8AMAatNn7lmo=
+3 -3
View File
@@ -2,8 +2,8 @@ package google
import (
"context"
ersteller_lib "ersteller-lib"
google_http "ersteller-lib/authentication/google/http"
"git.gorlug.de/code/ersteller"
google_http "git.gorlug.de/code/ersteller/authentication/google/http"
"git.gorlug.de/code/ersteller/starter/ent"
"git.gorlug.de/code/ersteller/starter/ent/user"
)
@@ -25,7 +25,7 @@ func (d *Database) GetUserIdByEmail(ctx context.Context, email string) (int, err
func (d *Database) CreateUser(ctx context.Context, email string) (int, error) {
newUser, err := d.db.User.Create().SetEmail(email).Save(ctx)
if err != nil {
ersteller_lib.LogError("Failed to create user: %v", err)
ersteller.LogError("Failed to create user: %v", err)
return -1, err
}
return newUser.ID, nil
+1 -1
View File
@@ -1,7 +1,7 @@
package index
import (
. "ersteller-lib"
. "git.gorlug.de/code/ersteller"
. "maragu.dev/gomponents"
. "maragu.dev/gomponents/html"
+1 -1
View File
@@ -1,7 +1,7 @@
package login
import (
. "ersteller-lib"
. "git.gorlug.de/code/ersteller"
. "maragu.dev/gomponents"
. "maragu.dev/gomponents/html"
+1 -1
View File
@@ -2,7 +2,7 @@ package main
import (
"context"
. "ersteller-lib"
. "git.gorlug.de/code/ersteller"
"git.gorlug.de/code/ersteller/starter/ent"
"git.gorlug.de/code/ersteller/starter/env"
"git.gorlug.de/code/ersteller/starter/routes"
+3 -3
View File
@@ -1,9 +1,9 @@
package routes
import (
. "ersteller-lib"
"ersteller-lib/authentication"
google_http "ersteller-lib/authentication/google/http"
. "git.gorlug.de/code/ersteller"
"git.gorlug.de/code/ersteller/authentication"
google_http "git.gorlug.de/code/ersteller/authentication/google/http"
"git.gorlug.de/code/ersteller/starter/about"
"git.gorlug.de/code/ersteller/starter/contact"
"git.gorlug.de/code/ersteller/starter/ent"
+1 -1
View File
@@ -6,7 +6,7 @@ import (
"strconv"
"strings"
. "ersteller-lib"
. "git.gorlug.de/code/ersteller"
"git.gorlug.de/code/ersteller/starter/ent"
"git.gorlug.de/code/ersteller/starter/ent/todo"