chore: migrated from experimental go slices to stdlib slices
This commit is contained in:
parent
a1f03e7d33
commit
aee6db3263
|
|
@ -39,6 +39,10 @@ linters:
|
||||||
- path: _test\.go
|
- path: _test\.go
|
||||||
linters:
|
linters:
|
||||||
- gosec
|
- gosec
|
||||||
|
- path: _test\.go
|
||||||
|
text: "fieldalignment:"
|
||||||
|
linters:
|
||||||
|
- govet
|
||||||
- path: scripts/
|
- path: scripts/
|
||||||
linters:
|
linters:
|
||||||
- gosec
|
- gosec
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@ import (
|
||||||
config "github.com/OliveTin/OliveTin/internal/config"
|
config "github.com/OliveTin/OliveTin/internal/config"
|
||||||
log "github.com/sirupsen/logrus"
|
log "github.com/sirupsen/logrus"
|
||||||
|
|
||||||
"golang.org/x/exp/slices"
|
"slices"
|
||||||
)
|
)
|
||||||
|
|
||||||
type PermissionBits int
|
type PermissionBits int
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@ import (
|
||||||
entities "github.com/OliveTin/OliveTin/internal/entities"
|
entities "github.com/OliveTin/OliveTin/internal/entities"
|
||||||
"github.com/OliveTin/OliveTin/internal/tpl"
|
"github.com/OliveTin/OliveTin/internal/tpl"
|
||||||
log "github.com/sirupsen/logrus"
|
log "github.com/sirupsen/logrus"
|
||||||
"golang.org/x/exp/slices"
|
"slices"
|
||||||
)
|
)
|
||||||
|
|
||||||
func renderDashboard(rr *DashboardRenderRequest, dashboardTitle string) *apiv1.Dashboard {
|
func renderDashboard(rr *DashboardRenderRequest, dashboardTitle string) *apiv1.Dashboard {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue