From 2e97859b87948a66c9f911ec43f128fa07796b27 Mon Sep 17 00:00:00 2001 From: Elara6331 Date: Fri, 12 Sep 2025 22:09:49 +0200 Subject: [PATCH] Remove old dependency on x/exp/slices in favor of stdlib --- go.mod | 4 +--- go.sum | 2 -- vercmp.go | 3 +-- vercmp_test.go | 3 +-- 4 files changed, 3 insertions(+), 9 deletions(-) diff --git a/go.mod b/go.mod index aa92edd..f2e4a8a 100644 --- a/go.mod +++ b/go.mod @@ -1,5 +1,3 @@ module go.elara.ws/vercmp -go 1.20 - -require golang.org/x/exp v0.0.0-20230522175609-2e198f4a06a1 +go 1.21 diff --git a/go.sum b/go.sum index 001575f..e69de29 100644 --- a/go.sum +++ b/go.sum @@ -1,2 +0,0 @@ -golang.org/x/exp v0.0.0-20230522175609-2e198f4a06a1 h1:k/i9J1pBpvlfR+9QsetwPyERsqu1GIbi967PQMq3Ivc= -golang.org/x/exp v0.0.0-20230522175609-2e198f4a06a1/go.mod h1:V1LtkGg67GoY2N1AnLN78QLrzxkLyJw7RJb1gzOOz9w= diff --git a/vercmp.go b/vercmp.go index 4cffc18..496b052 100644 --- a/vercmp.go +++ b/vercmp.go @@ -3,10 +3,9 @@ package vercmp import ( + "slices" "strconv" "strings" - - "golang.org/x/exp/slices" ) // Compare compares two version strings. diff --git a/vercmp_test.go b/vercmp_test.go index 663263b..3b25929 100644 --- a/vercmp_test.go +++ b/vercmp_test.go @@ -1,9 +1,8 @@ package vercmp import ( + "slices" "testing" - - "golang.org/x/exp/slices" ) func TestSepLabel(t *testing.T) {