Remove old dependency on x/exp/slices in favor of stdlib

This commit is contained in:
2025-09-12 22:09:11 +02:00
parent 6718928860
commit e0ca316ec2
3 changed files with 3 additions and 5 deletions

2
go.mod
View File

@@ -1,5 +1,5 @@
module go.elara.ws/vercmp module go.elara.ws/vercmp
go 1.20 go 1.21
require golang.org/x/exp v0.0.0-20230522175609-2e198f4a06a1 require golang.org/x/exp v0.0.0-20230522175609-2e198f4a06a1

View File

@@ -3,10 +3,9 @@
package vercmp package vercmp
import ( import (
"slices"
"strconv" "strconv"
"strings" "strings"
"golang.org/x/exp/slices"
) )
// Compare compares two version strings. // Compare compares two version strings.

View File

@@ -1,9 +1,8 @@
package vercmp package vercmp
import ( import (
"slices"
"testing" "testing"
"golang.org/x/exp/slices"
) )
func TestSepLabel(t *testing.T) { func TestSepLabel(t *testing.T) {