lens @ 29e9fd3136f2e2fe301cbe07967fb3bb4ffcee2a

fix: Rollback to exp slog repository

This is done until go1.21 hits alpine repository.
diff --git a/cmd/server/main.go b/cmd/server/main.go
index c2160c4890eeba599b53517c8d89246262764350..a7143d2f6e45196c3bf45b057d1d37466d4c7dbd 100644
--- a/cmd/server/main.go
+++ b/cmd/server/main.go
@@ -4,7 +4,6 @@ import (
 	"context"
 	"encoding/base64"
 	"errors"
-	"log/slog"
 	"net/http"
 	"os"
 	"os/signal"
@@ -13,6 +12,7 @@
 	"github.com/glebarez/sqlite"
 	"github.com/gorilla/mux"
 	flag "github.com/spf13/pflag"
+	"golang.org/x/exp/slog"
 	"gorm.io/driver/mysql"
 	"gorm.io/driver/postgres"
 	"gorm.io/gorm"
diff --git a/go.mod b/go.mod
index b8e4bb7bc9e76aa474179b2fc77cc1842c457451..5a33eafd117fbfb2fffe78ea08e9a4b422a4bd52 100644
--- a/go.mod
+++ b/go.mod
@@ -11,6 +11,7 @@ 	github.com/h2non/bimg v1.1.9
 	github.com/spf13/pflag v1.0.5
 	github.com/valyala/quicktemplate v1.7.0
 	golang.org/x/crypto v0.8.0
+	golang.org/x/exp v0.0.0-20231127185646-65229373498e
 	gorm.io/driver/mysql v1.5.1
 	gorm.io/driver/postgres v1.5.2
 	gorm.io/driver/sqlite v1.5.0
diff --git a/go.sum b/go.sum
index 03f8b3e75ff3a728a009724d1556164ca2a4caf2..00e2463413f3f24e6836d25ced01c82edce761fe 100644
--- a/go.sum
+++ b/go.sum
@@ -63,6 +63,8 @@ github.com/valyala/tcplisten v1.0.0/go.mod h1:T0xQ8SeCZGxckz9qRXTfG43PvQ/mcWh7FwZEA7Ioqkc=
 golang.org/x/crypto v0.0.0-20210513164829-c07d793c2f9a/go.mod h1:P+XmwS30IXTQdn5tA2iutPOUgjI07+tq3H3K9MVA1s8=
 golang.org/x/crypto v0.8.0 h1:pd9TJtTueMTVQXzk8E2XESSMQDj/U7OUu0PqJqPXQjQ=
 golang.org/x/crypto v0.8.0/go.mod h1:mRqEX+O9/h5TFCrQhkgjo2yKi0yYA+9ecGkdQoHrywE=
+golang.org/x/exp v0.0.0-20231127185646-65229373498e h1:Gvh4YaCaXNs6dKTlfgismwWZKyjVZXwOPfIyUaqU3No=
+golang.org/x/exp v0.0.0-20231127185646-65229373498e/go.mod h1:iRJReGqOEeBhDZGkGbynYwcHlctCvnjTYIamk7uXpHI=
 golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg=
 golang.org/x/net v0.0.0-20210510120150-4163338589ed/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y=
 golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
diff --git a/pkg/ext/gorm_logger.go b/pkg/ext/gorm_logger.go
index f0ab59264e7ff3efdea2fe57e613c52c628af9cf..ddced211a05a1b0259bc51e121230a7db390b64d 100644
--- a/pkg/ext/gorm_logger.go
+++ b/pkg/ext/gorm_logger.go
@@ -3,9 +3,9 @@
 import (
 	"context"
 	"fmt"
-	"log/slog"
 	"time"
 
+	"golang.org/x/exp/slog"
 	"gorm.io/gorm/logger"
 	"gorm.io/gorm/utils"
 )
diff --git a/pkg/ext/middleware.go b/pkg/ext/middleware.go
index 38bacca92dc571629e62545f05d3a89362f9d758..d9f06e15515cddc0af33453fdaa1aa34da336a9e 100644
--- a/pkg/ext/middleware.go
+++ b/pkg/ext/middleware.go
@@ -4,9 +4,10 @@ import (
 	"context"
 	"encoding/base64"
 	"errors"
-	"log/slog"
 	"net/http"
 	"time"
+
+	"golang.org/x/exp/slog"
 
 	"git.sr.ht/~gabrielgio/img/pkg/database/repository"
 	"git.sr.ht/~gabrielgio/img/pkg/service"
@@ -47,7 +48,6 @@ 			r.Method,
 			slog.Duration("elapsed", elapsed),
 			slog.String("path", r.URL.Path),
 		)
-
 	}
 }
 
@@ -135,7 +135,6 @@ }
 
 func (i *InitialSetupMiddleware) Check(next http.HandlerFunc) http.HandlerFunc {
 	return func(w http.ResponseWriter, r *http.Request) {
-
 		// if user has been set to context it is logged in already
 		token := GetUserFromCtx(r)
 		if token != nil {
diff --git a/pkg/service/filesystem.go b/pkg/service/filesystem.go
index 1364fd8deb7e0e01af4d4c509c07487ae7367e26..34eda61b9fb8a7c22b9cf1b89134b627b49d06d9 100644
--- a/pkg/service/filesystem.go
+++ b/pkg/service/filesystem.go
@@ -104,7 +104,6 @@ 	return !inf.IsDir(), nil
 }
 
 func (f *FileSystemController) GetPage(ctx context.Context, filename string, fullPath string) (*Page, error) {
-
 	files, err := f.fsRepository.List(fullPath)
 	if err != nil {
 		return nil, err
diff --git a/pkg/worker/list_processor.go b/pkg/worker/list_processor.go
index c4c37819c2c8542e7d39d30ba753bbc2457b7005..2a51466fe7081e12b049eec04221d675bc35ac34 100644
--- a/pkg/worker/list_processor.go
+++ b/pkg/worker/list_processor.go
@@ -3,8 +3,9 @@
 import (
 	"context"
 	"errors"
-	"log/slog"
 	"sync"
+
+	"golang.org/x/exp/slog"
 )
 
 type (
diff --git a/pkg/worker/list_processor_test.go b/pkg/worker/list_processor_test.go
index 21489e82685e62ed1e6f85d04f5209dbc59d7feb..053ebbd5e894cddc6aee6b12fc62d1dbaef89b3a 100644
--- a/pkg/worker/list_processor_test.go
+++ b/pkg/worker/list_processor_test.go
@@ -5,10 +5,11 @@
 import (
 	"context"
 	"errors"
-	"log/slog"
 	"math/rand"
 	"sync"
 	"testing"
+
+	"golang.org/x/exp/slog"
 
 	"git.sr.ht/~gabrielgio/img/pkg/testkit"
 )