From e0ca316ec2b244d95f9f31cf34a57cc1f52c0299 Mon Sep 17 00:00:00 2001 From: Elara6331 Date: Fri, 12 Sep 2025 22:09:11 +0200 Subject: [PATCH] Remove old dependency on x/exp/slices in favor of stdlib --- go.mod | 2 +- vercmp.go | 3 +-- vercmp_test.go | 3 +-- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/go.mod b/go.mod index aa92edd..4512b42 100644 --- a/go.mod +++ b/go.mod @@ -1,5 +1,5 @@ module go.elara.ws/vercmp -go 1.20 +go 1.21 require golang.org/x/exp v0.0.0-20230522175609-2e198f4a06a1 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) {