Skip to content

Commit

Permalink
refactor(项目): collection -> container
Browse files Browse the repository at this point in the history
  • Loading branch information
storezhang committed Nov 29, 2024
1 parent 3020e4e commit 9ee4901
Show file tree
Hide file tree
Showing 11 changed files with 24 additions and 24 deletions.
20 changes: 10 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
@@ -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`集合框架为原型设计

Expand Down
2 changes: 1 addition & 1 deletion collection.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package collection

import (
"github.com/goexl/collection/internal/kernel"
"github.com/goexl/container/internal/kernel"
)

// Collection 集合
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/goexl/collection
module github.com/goexl/container

go 1.23

Expand Down
2 changes: 1 addition & 1 deletion queue.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package collection

import (
"github.com/goexl/collection/internal/kernel"
"github.com/goexl/container/internal/kernel"
)

// Queue 队列
Expand Down
6 changes: 3 additions & 3 deletions queue/internal/builder/queue.go
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down
4 changes: 2 additions & 2 deletions queue/internal/core/blocking.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
4 changes: 2 additions & 2 deletions queue/internal/core/default.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion queue/internal/core/internal/priority/items.go
Original file line number Diff line number Diff line change
@@ -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]
Expand Down
2 changes: 1 addition & 1 deletion queue/internal/core/internal/priority/priority.go
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion queue/new.go
Original file line number Diff line number Diff line change
@@ -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] {
Expand Down
2 changes: 1 addition & 1 deletion queue/new_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package queue_test
import (
"testing"

"github.com/goexl/collection/queue"
"github.com/goexl/container/queue"
"github.com/stretchr/testify/require"
)

Expand Down

0 comments on commit 9ee4901

Please sign in to comment.