Remove old dependency on x/exp/slices in favor of stdlib
This commit is contained in:
parent
6718928860
commit
2e97859b87
4
go.mod
4
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
|
||||
|
2
go.sum
2
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=
|
@ -3,10 +3,9 @@
|
||||
package vercmp
|
||||
|
||||
import (
|
||||
"slices"
|
||||
"strconv"
|
||||
"strings"
|
||||
|
||||
"golang.org/x/exp/slices"
|
||||
)
|
||||
|
||||
// Compare compares two version strings.
|
||||
|
@ -1,9 +1,8 @@
|
||||
package vercmp
|
||||
|
||||
import (
|
||||
"slices"
|
||||
"testing"
|
||||
|
||||
"golang.org/x/exp/slices"
|
||||
)
|
||||
|
||||
func TestSepLabel(t *testing.T) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user