File tree Expand file tree Collapse file tree 3 files changed +4
-8
lines changed Expand file tree Collapse file tree 3 files changed +4
-8
lines changed Original file line number Diff line number Diff line change 1
1
module github.com/alxarno/tinytune
2
2
3
- go 1.22.5
3
+ go 1.23.0
4
+
4
5
toolchain go1.24.1
5
6
6
7
require (
@@ -12,7 +13,6 @@ require (
12
13
github.com/schollz/progressbar/v3 v3.17.1
13
14
github.com/stretchr/testify v1.10.0
14
15
github.com/urfave/cli/v2 v2.27.5
15
- golang.org/x/exp v0.0.0-20241217172543-b2144cdd0a67
16
16
golang.org/x/sync v0.11.0
17
17
)
18
18
Original file line number Diff line number Diff line change @@ -45,8 +45,6 @@ golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACk
45
45
golang.org/x/crypto v0.0.0-20210921155107-089bfa567519 /go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc =
46
46
golang.org/x/crypto v0.19.0 /go.mod h1:Iy9bg/ha4yyC70EfRS8jz+B6ybOBKMaSxLj6P6oBDfU =
47
47
golang.org/x/crypto v0.21.0 /go.mod h1:0BP7YvVV9gBbVKyeTG0Gyn+gZm94bibOW5BjDEYAOMs =
48
- golang.org/x/exp v0.0.0-20241217172543-b2144cdd0a67 h1:1UoZQm6f0P/ZO0w1Ri+f+ifG/gXhegadRdwBIXEFWDo =
49
- golang.org/x/exp v0.0.0-20241217172543-b2144cdd0a67 /go.mod h1:qj5a5QZpwLU2NLQudwIN5koi3beDhSAlJwa67PuM98c =
50
48
golang.org/x/image v0.10.0 /go.mod h1:jtrku+n79PfroUbvDdeUWMAI+heR786BofxrbiSF+J0 =
51
49
golang.org/x/image v0.23.0 h1:HseQ7c2OpPKTPVzNjG5fwJsOTCiiwS4QdsYi5XU6H68 =
52
50
golang.org/x/image v0.23.0 /go.mod h1:wJJBTdLfCCf3tiHa1fNxpZmUI4mmoZvwMCPP0ddoNKY =
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ package internal
3
3
import (
4
4
"fmt"
5
5
"log/slog"
6
+ "maps"
6
7
"net/http"
7
8
"net/http/pprof"
8
9
"net/url"
@@ -13,7 +14,6 @@ import (
13
14
"github.com/alxarno/tinytune/pkg/httputil"
14
15
"github.com/alxarno/tinytune/pkg/index"
15
16
"github.com/justinas/alice"
16
- "golang.org/x/exp/maps"
17
17
)
18
18
19
19
type PageData struct {
@@ -40,9 +40,7 @@ func logWriteErr(_ int, err error) {
40
40
}
41
41
42
42
func applyCookies (r * http.Request , data PageData ) PageData {
43
- sorts := maps .Keys (getSorts ())
44
- slices .Sort (sorts )
45
- data .Sorts = sorts
43
+ data .Sorts = slices .Sorted (maps .Keys (getSorts ()))
46
44
47
45
if cookie , err := r .Cookie ("zoom" ); err == nil {
48
46
data .Zoom = cookie .Value
You can’t perform that action at this time.
0 commit comments