diff --git a/README.md b/README.md index 3cb4023..e7b00c1 100644 --- a/README.md +++ b/README.md @@ -1,13 +1,13 @@ -# collection -[![编译状态](https://github.ruijc.com:20443/api/badges/goexl/collection/status.svg)](https://github.ruijc.com:20443/pangum/pangu) -[![Golang质量](https://goreportcard.com/badge/github.com/goexl/collection)](https://goreportcard.com/report/github.com/pangum/pangu) -![版本](https://img.shields.io/github/go-mod/go-version/goexl/collection) -![仓库大小](https://img.shields.io/github/repo-size/goexl/collection) -![最后提交](https://img.shields.io/github/last-commit/goexl/collection) -![授权协议](https://img.shields.io/github/license/goexl/collection) -![语言个数](https://img.shields.io/github/languages/count/goexl/collection) -![最佳语言](https://img.shields.io/github/languages/top/goexl/collection) -![星星个数](https://img.shields.io/github/stars/goexl/collection?style=social) +# container +[![编译状态](https://github.ruijc.com:20443/api/badges/goexl/container/status.svg)](https://github.ruijc.com:20443/pangum/pangu) +[![Golang质量](https://goreportcard.com/badge/github.com/goexl/container)](https://goreportcard.com/report/github.com/pangum/pangu) +![版本](https://img.shields.io/github/go-mod/go-version/goexl/container) +![仓库大小](https://img.shields.io/github/repo-size/goexl/container) +![最后提交](https://img.shields.io/github/last-commit/goexl/container) +![授权协议](https://img.shields.io/github/license/goexl/container) +![语言个数](https://img.shields.io/github/languages/count/goexl/container) +![最佳语言](https://img.shields.io/github/languages/top/goexl/container) +![星星个数](https://img.shields.io/github/stars/goexl/container?style=social) `Golang`集合框架,以`Java`集合框架为原型设计 diff --git a/collection.go b/collection.go index 224adab..3ec60be 100644 --- a/collection.go +++ b/collection.go @@ -1,7 +1,7 @@ package collection import ( - "github.com/goexl/collection/internal/kernel" + "github.com/goexl/container/internal/kernel" ) // Collection 集合 diff --git a/go.mod b/go.mod index 9177d86..f8243bb 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/goexl/collection +module github.com/goexl/container go 1.23 diff --git a/queue.go b/queue.go index 1e5ec6b..54f70fe 100644 --- a/queue.go +++ b/queue.go @@ -1,7 +1,7 @@ package collection import ( - "github.com/goexl/collection/internal/kernel" + "github.com/goexl/container/internal/kernel" ) // Queue 队列 diff --git a/queue/internal/builder/queue.go b/queue/internal/builder/queue.go index 6120601..5966f27 100644 --- a/queue/internal/builder/queue.go +++ b/queue/internal/builder/queue.go @@ -1,9 +1,9 @@ package builder import ( - "github.com/goexl/collection/internal/kernel" - "github.com/goexl/collection/queue/internal/core" - "github.com/goexl/collection/queue/internal/param" + "github.com/goexl/container/internal/kernel" + "github.com/goexl/container/queue/internal/core" + "github.com/goexl/container/queue/internal/param" ) type Queue[T any] struct { diff --git a/queue/internal/core/blocking.go b/queue/internal/core/blocking.go index a479927..1c62ccf 100644 --- a/queue/internal/core/blocking.go +++ b/queue/internal/core/blocking.go @@ -4,8 +4,8 @@ import ( "container/list" "sync" - "github.com/goexl/collection/internal/kernel" - "github.com/goexl/collection/queue/internal/param" + "github.com/goexl/container/internal/kernel" + "github.com/goexl/container/queue/internal/param" ) var _ kernel.Queue[int] = (*Blocking[int])(nil) diff --git a/queue/internal/core/default.go b/queue/internal/core/default.go index 9a16acc..137c0cb 100644 --- a/queue/internal/core/default.go +++ b/queue/internal/core/default.go @@ -3,8 +3,8 @@ package core import ( "container/list" - "github.com/goexl/collection/internal/kernel" - "github.com/goexl/collection/queue/internal/param" + "github.com/goexl/container/internal/kernel" + "github.com/goexl/container/queue/internal/param" ) var _ kernel.Queue[int] = (*Default[int])(nil) diff --git a/queue/internal/core/internal/priority/items.go b/queue/internal/core/internal/priority/items.go index 2e4f251..c5b39e0 100644 --- a/queue/internal/core/internal/priority/items.go +++ b/queue/internal/core/internal/priority/items.go @@ -1,7 +1,7 @@ package priority import ( - "github.com/goexl/collection/internal/kernel" + "github.com/goexl/container/internal/kernel" ) type Items[T kernel.Ranker] []*Item[T] diff --git a/queue/internal/core/internal/priority/priority.go b/queue/internal/core/internal/priority/priority.go index eb341af..e80df31 100644 --- a/queue/internal/core/internal/priority/priority.go +++ b/queue/internal/core/internal/priority/priority.go @@ -1,7 +1,7 @@ package priority import ( - "github.com/goexl/collection/internal/kernel" + "github.com/goexl/container/internal/kernel" ) type Item[T kernel.Ranker] struct { diff --git a/queue/new.go b/queue/new.go index f373781..cf4d9ad 100644 --- a/queue/new.go +++ b/queue/new.go @@ -1,7 +1,7 @@ package queue import ( - "github.com/goexl/collection/queue/internal/builder" + "github.com/goexl/container/queue/internal/builder" ) func New[T any]() *builder.Queue[T] { diff --git a/queue/new_test.go b/queue/new_test.go index fabf15a..99d9134 100644 --- a/queue/new_test.go +++ b/queue/new_test.go @@ -3,7 +3,7 @@ package queue_test import ( "testing" - "github.com/goexl/collection/queue" + "github.com/goexl/container/queue" "github.com/stretchr/testify/require" )