Chore: Use slices from standard library in promlib (#98350)

use slices from standard library
pull/98457/head
ismail simsek 6 months ago committed by GitHub
parent 03f7a7d89d
commit 0d60a026e9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 3
      pkg/promlib/converter/prom.go
  2. 2
      pkg/promlib/go.mod

@ -3,6 +3,7 @@ package converter
import (
"encoding/json"
"fmt"
"slices"
"strconv"
"time"
@ -10,8 +11,6 @@ import (
"github.com/grafana/grafana-plugin-sdk-go/data"
sdkjsoniter "github.com/grafana/grafana-plugin-sdk-go/data/utils/jsoniter"
jsoniter "github.com/json-iterator/go"
"golang.org/x/exp/slices"
)
// helpful while debugging all the options that may appear

@ -12,7 +12,6 @@ require (
github.com/stretchr/testify v1.10.0
go.opentelemetry.io/otel v1.32.0
go.opentelemetry.io/otel/trace v1.32.0
golang.org/x/exp v0.0.0-20240909161429-701f63a606c0
k8s.io/apimachinery v0.31.3
)
@ -110,6 +109,7 @@ require (
go.opentelemetry.io/proto/otlp v1.3.1 // indirect
go.uber.org/atomic v1.11.0 // indirect
go.uber.org/goleak v1.3.0 // indirect
golang.org/x/exp v0.0.0-20240909161429-701f63a606c0 // indirect
golang.org/x/mod v0.22.0 // indirect
golang.org/x/net v0.32.0 // indirect
golang.org/x/sync v0.10.0 // indirect

Loading…
Cancel
Save