From aee6db326373631106de2ebeecaba95be3c44907 Mon Sep 17 00:00:00 2001 From: jamesread Date: Tue, 28 Jul 2026 22:27:41 +0100 Subject: [PATCH] chore: migrated from experimental go slices to stdlib slices --- service/.golangci.yml | 4 ++++ service/internal/acl/acl.go | 2 +- service/internal/api/dashboards.go | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/service/.golangci.yml b/service/.golangci.yml index d5448ff3..2e486b85 100644 --- a/service/.golangci.yml +++ b/service/.golangci.yml @@ -39,6 +39,10 @@ linters: - path: _test\.go linters: - gosec + - path: _test\.go + text: "fieldalignment:" + linters: + - govet - path: scripts/ linters: - gosec diff --git a/service/internal/acl/acl.go b/service/internal/acl/acl.go index ac6b696d..9e3986ef 100644 --- a/service/internal/acl/acl.go +++ b/service/internal/acl/acl.go @@ -5,7 +5,7 @@ import ( config "github.com/OliveTin/OliveTin/internal/config" log "github.com/sirupsen/logrus" - "golang.org/x/exp/slices" + "slices" ) type PermissionBits int diff --git a/service/internal/api/dashboards.go b/service/internal/api/dashboards.go index 7227404b..42338efe 100644 --- a/service/internal/api/dashboards.go +++ b/service/internal/api/dashboards.go @@ -10,7 +10,7 @@ import ( entities "github.com/OliveTin/OliveTin/internal/entities" "github.com/OliveTin/OliveTin/internal/tpl" log "github.com/sirupsen/logrus" - "golang.org/x/exp/slices" + "slices" ) func renderDashboard(rr *DashboardRenderRequest, dashboardTitle string) *apiv1.Dashboard {