1
0
mirror of https://github.com/duke-git/lancet.git synced 2026-02-08 14:42:27 +08:00

upgrade go module v2

This commit is contained in:
dudaodong
2022-03-17 10:57:35 +08:00
parent 1434e00712
commit 50c6e51393
42 changed files with 46 additions and 45 deletions

View File

@@ -4,7 +4,7 @@ import (
"errors"
"fmt"
"github.com/duke-git/lancet/datastructure"
"github.com/duke-git/lancet/v2/datastructure"
)
// DoublyLink is a linked list. Whose node has a generic Value, Pre pointer points to a previous node of the link, Next pointer points to a next node of the link.

View File

@@ -3,7 +3,7 @@ package datastructure
import (
"testing"
"github.com/duke-git/lancet/internal"
"github.com/duke-git/lancet/v2/internal"
)
func TestDoublyLink_InsertAtFirst(t *testing.T) {

View File

@@ -4,7 +4,7 @@ import (
"errors"
"fmt"
"github.com/duke-git/lancet/datastructure"
"github.com/duke-git/lancet/v2/datastructure"
)
// SinglyLink is a linked list. Whose node has a Value generics and Next pointer points to a next node of the link.

View File

@@ -3,7 +3,7 @@ package datastructure
import (
"testing"
"github.com/duke-git/lancet/internal"
"github.com/duke-git/lancet/v2/internal"
)
func TestSinglyLink_InsertAtFirst(t *testing.T) {

View File

@@ -3,7 +3,7 @@ package datastructure
import (
"testing"
"github.com/duke-git/lancet/internal"
"github.com/duke-git/lancet/v2/internal"
)
func TestListData(t *testing.T) {

View File

@@ -3,7 +3,7 @@ package datastructure
import (
"testing"
"github.com/duke-git/lancet/internal"
"github.com/duke-git/lancet/v2/internal"
)
func TestArrayQueue_EnQueue(t *testing.T) {

View File

@@ -3,7 +3,7 @@ package datastructure
import (
"testing"
"github.com/duke-git/lancet/internal"
"github.com/duke-git/lancet/v2/internal"
)
func TestCircularQueue_EnQueue(t *testing.T) {

View File

@@ -4,7 +4,7 @@ import (
"errors"
"fmt"
"github.com/duke-git/lancet/datastructure"
"github.com/duke-git/lancet/v2/datastructure"
)
// LinkedQueue implements queue with link list

View File

@@ -3,7 +3,7 @@ package datastructure
import (
"testing"
"github.com/duke-git/lancet/internal"
"github.com/duke-git/lancet/v2/internal"
)
func TestLinkedQueue_EnQueue(t *testing.T) {

View File

@@ -3,7 +3,7 @@ package datastructure
import (
"testing"
"github.com/duke-git/lancet/internal"
"github.com/duke-git/lancet/v2/internal"
)
func TestSet_Add(t *testing.T) {

View File

@@ -3,7 +3,7 @@ package datastructure
import (
"testing"
"github.com/duke-git/lancet/internal"
"github.com/duke-git/lancet/v2/internal"
)
func TestArrayStack_Push(t *testing.T) {

View File

@@ -4,7 +4,7 @@ import (
"errors"
"fmt"
"github.com/duke-git/lancet/datastructure"
"github.com/duke-git/lancet/v2/datastructure"
)
// LinkedStack implements stack with link list

View File

@@ -3,7 +3,7 @@ package datastructure
import (
"testing"
"github.com/duke-git/lancet/internal"
"github.com/duke-git/lancet/v2/internal"
)
func TestLinkedStack_Push(t *testing.T) {

View File

@@ -3,8 +3,8 @@ package datastructure
import (
"math"
"github.com/duke-git/lancet/datastructure"
"github.com/duke-git/lancet/lancetconstraints"
"github.com/duke-git/lancet/v2/datastructure"
"github.com/duke-git/lancet/v2/lancetconstraints"
)
// BSTree is a binary search tree data structure in which each node has at most two children,

View File

@@ -3,7 +3,7 @@ package datastructure
import (
"testing"
"github.com/duke-git/lancet/internal"
"github.com/duke-git/lancet/v2/internal"
)
type intComparator struct{}

View File

@@ -4,8 +4,8 @@ import (
"fmt"
"math"
"github.com/duke-git/lancet/datastructure"
"github.com/duke-git/lancet/lancetconstraints"
"github.com/duke-git/lancet/v2/datastructure"
"github.com/duke-git/lancet/v2/lancetconstraints"
)
func preOrderTraverse[T any](node *datastructure.TreeNode[T]) []T {