Skip to content

Commit 4480f9e

Browse files
authored
refactor(ee/backend): replace golang.org/x/exp/maps with stdlib maps (#2281)
The experimental functions in `golang.org/x/exp/maps` are now available in the standard library in Go 1.21. Reference: https://go.dev/doc/go1.21#maps Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
1 parent 5ba8261 commit 4480f9e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ee/backend/controllers/web.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ package controllers
33
import (
44
"html/template"
55
"log"
6+
"maps"
67
"net/http"
78
"strconv"
89
"strings"
@@ -13,7 +14,6 @@ import (
1314
"github.com/diggerhq/digger/backend/services"
1415
"github.com/gin-gonic/gin"
1516
"github.com/robert-nix/ansihtml"
16-
"golang.org/x/exp/maps"
1717
)
1818

1919
type WebController struct {

ee/backend/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ require (
1919
github.com/robert-nix/ansihtml v1.0.1
2020
github.com/samber/lo v1.46.0
2121
github.com/xanzy/go-gitlab v0.106.0
22-
golang.org/x/exp v0.0.0-20240531132922-fd00a4e0eefc
2322
)
2423

2524
require (
@@ -282,6 +281,7 @@ require (
282281
go.uber.org/multierr v1.9.0 // indirect
283282
golang.org/x/arch v0.8.0 // indirect
284283
golang.org/x/crypto v0.32.0 // indirect
284+
golang.org/x/exp v0.0.0-20240531132922-fd00a4e0eefc // indirect
285285
golang.org/x/mod v0.17.0 // indirect
286286
golang.org/x/net v0.34.0 // indirect
287287
golang.org/x/oauth2 v0.24.0 // indirect

0 commit comments

Comments
 (0)