Skip to content

Commit

Permalink
Merge pull request #177 from ecodeclub/dev
Browse files Browse the repository at this point in the history
准备 Release v0.0.7
  • Loading branch information
flycash authored Apr 13, 2023
2 parents 6e7075b + 155780c commit 71ad71d
Show file tree
Hide file tree
Showing 119 changed files with 2,397 additions and 303 deletions.
103 changes: 57 additions & 46 deletions .CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,58 +8,69 @@
- [queue: 基于链表实现的有界/无界阻塞队列](https://github.com/gotomicro/ekit/pull/122)
- [queue: ConcurrentLinkBlockingQueue重命名为ConcurrentLinkedBlockingQueue](https://github.com/gotomicro/ekit/pull/123)

# v0.0.7
- [slice: FilterDelete](https://github.com/ecodeclub/ekit/pull/152)
- [reflectx: IsNil 方法](https://github.com/ecodeclub/ekit/pull/150)
- [setx: Set接口设计和基于map的实现](https://github.com/ecodeclub/ekit/pull/148)
- [setx: TreeSet基于TreeMap实现](https://github.com/ecodeclub/ekit/issues/147)
- [pool: pool基于arena实现](https://github.com/ecodeclub/ekit/pull/160)
- [pool: 改进 ArenaPool 的实现](https://github.com/ecodeclub/ekit/pull/165)
- [pool: TaskPool 的可观测性](https://github.com/ecodeclub/ekit/pull/166)
- [retry: Strategy 接口设计与等间隔重试实现](https://github.com/ecodeclub/ekit/pull/169)
- [retry: 指数退避重试策略实现](https://github.com/ecodeclub/ekit/pull/174)

# v0.0.6
- [queue: 基于semaphore的并发阻塞队列实现](https://github.com/gotomicro/ekit/pull/129)
- [mapx: hashmap实现](https://github.com/gotomicro/ekit/pull/132)
- [mapx: 添加 Keys 方法](https://github.com/gotomicro/ekit/pull/134)
- [ekit: 修改代码风格,增加bool类型支持](https://github.com/gotomicro/ekit/pull/135)
- [mapx: hashmap添加刪除功能](https://github.com/gotomicro/ekit/pull/138)
- [mapx: HashMap 增加 Keys 和 Values 方法](https://github.com/gotomicro/ekit/pull/141)
- [mapx: TreeMap](https://github.com/gotomicro/ekit/pull/142)
- [queue: 基于semaphore的并发阻塞队列实现](https://github.com/ecodeclub/ekit/pull/129)
- [mapx: hashmap实现](https://github.com/ecodeclub/ekit/pull/132)
- [mapx: 添加 Keys 方法](https://github.com/ecodeclub/ekit/pull/134)
- [ekit: 修改代码风格,增加bool类型支持](https://github.com/ecodeclub/ekit/pull/135)
- [mapx: hashmap添加刪除功能](https://github.com/ecodeclub/ekit/pull/138)
- [mapx: HashMap 增加 Keys 和 Values 方法](https://github.com/ecodeclub/ekit/pull/141)
- [mapx: TreeMap](https://github.com/ecodeclub/ekit/pull/142)

# v0.0.5
- [atomicx: 泛型封装 atomic.Value](https://github.com/gotomicro/ekit/pull/101)
- [queue: API 定义](https://github.com/gotomicro/ekit/pull/109)
- [queue: 基于堆和切片的优先级队列](https://github.com/gotomicro/ekit/pull/110)
- [queue: 延时队列](https://github.com/gotomicro/ekit/pull/115)
- [ekit: AnyValue 设计](https://github.com/gotomicro/ekit/pull/121)
- [queue: 基于切片的并发阻塞队列和基于 CAS 的并发队列设计](https://github.com/gotomicro/ekit/pull/119)
- [queue: 基于链表实现的有界/无界阻塞队列](https://github.com/gotomicro/ekit/pull/122)
- [queue: ConcurrentLinkBlockingQueue重命名为ConcurrentLinkedBlockingQueue](https://github.com/gotomicro/ekit/pull/123)
- [atomicx: 泛型封装 atomic.Value](https://github.com/ecodeclub/ekit/pull/101)
- [queue: API 定义](https://github.com/ecodeclub/ekit/pull/109)
- [queue: 基于堆和切片的优先级队列](https://github.com/ecodeclub/ekit/pull/110)
- [queue: 延时队列](https://github.com/ecodeclub/ekit/pull/115)
- [ekit: AnyValue 设计](https://github.com/ecodeclub/ekit/pull/121)
- [queue: 基于切片的并发阻塞队列和基于 CAS 的并发队列设计](https://github.com/ecodeclub/ekit/pull/119)
- [queue: 基于链表实现的有界/无界阻塞队列](https://github.com/ecodeclub/ekit/pull/122)
- [queue: ConcurrentLinkBlockingQueue重命名为ConcurrentLinkedBlockingQueue](https://github.com/ecodeclub/ekit/pull/123)

# v0.0.4
- [slice: 重构 index 和 contains 的方法,直接调用对应Func 版本](https://github.com/gotomicro/ekit/pull/87)
- [list: 优化 ArrayList Delete 的缩容逻辑](https://github.com/gotomicro/ekit/pull/88)
- [sqlx: 加密列 EncryptColumn 支持](https://github.com/gotomicro/ekit/pull/92)
- [slice: 重构 index 和 contains 的方法,直接调用对应Func 版本](https://github.com/ecodeclub/ekit/pull/87)
- [list: 优化 ArrayList Delete 的缩容逻辑](https://github.com/ecodeclub/ekit/pull/88)
- [sqlx: 加密列 EncryptColumn 支持](https://github.com/ecodeclub/ekit/pull/92)

# v0.0.3
- [ekit: add ToPtr function](https://github.com/gotomicro/ekit/pull/6)
- [sqlx: 支持 JsonColumn](https://github.com/gotomicro/ekit/pull/7)
- [sqlx: JsonColumn 只能处理 string, nil 和 []byte 类型](https://github.com/gotomicro/ekit/pull/66)
- [bean/copier: 实现了基于反射的 ReflectCopier](https://github.com/gotomicro/ekit/pull/47)
- [bean/option: Option 模式支持](https://github.com/gotomicro/ekit/pull/78)
- [ekit: add ToPtr function](https://github.com/ecodeclub/ekit/pull/6)
- [sqlx: 支持 JsonColumn](https://github.com/ecodeclub/ekit/pull/7)
- [sqlx: JsonColumn 只能处理 string, nil 和 []byte 类型](https://github.com/ecodeclub/ekit/pull/66)
- [bean/copier: 实现了基于反射的 ReflectCopier](https://github.com/ecodeclub/ekit/pull/47)
- [bean/option: Option 模式支持](https://github.com/ecodeclub/ekit/pull/78)
- list: 支持 ArrayList:
- [Range()](https://github.com/gotomicro/ekit/pull/12)
- [Get()](https://github.com/gotomicro/ekit/pull/18)
- [Len()](https://github.com/gotomicro/ekit/pull/18)
- [ekit: 实现了 ArrayList Delete 方法缩容](https://github.com/gotomicro/ekit/pull/63)
- [Range()](https://github.com/ecodeclub/ekit/pull/12)
- [Get()](https://github.com/ecodeclub/ekit/pull/18)
- [Len()](https://github.com/ecodeclub/ekit/pull/18)
- [ekit: 实现了 ArrayList Delete 方法缩容](https://github.com/ecodeclub/ekit/pull/63)
- list: 支持 LinkedList:
- [Add() 和 NewLinkedListOf()](https://github.com/gotomicro/ekit/pull/26)
- [Get](https://github.com/gotomicro/ekit/pull/31)
- [Append](https://github.com/gotomicro/ekit/pull/34)
- [Append 方法改造为不定参数形式](https://github.com/gotomicro/ekit/pull/58)
- [Delete](https://github.com/gotomicro/ekit/pull/38)
- [Len,Cap,NewLinkedList](https://github.com/gotomicro/ekit/pull/51)
- [Range](https://github.com/gotomicro/ekit/pull/46)
- [重构为双向循环链表](https://github.com/gotomicro/ekit/pull/73)
- [pool: 修复 Pool TestPool 测试不稳定的问题](https://github.com/gotomicro/ekit/pull/40)
- [ekit:引入 golangci-lint 和 goimports](https://github.com/gotomicro/ekit/pull/54)
- [ekit: 实现了 TaskPool](https://github.com/gotomicro/ekit/pull/57)
- [ekit: 修复OnDemandBlockTaskPool测试不稳定](https://github.com/gotomicro/ekit/pull/70)
- [syncx: 使用泛型封装 sync.Map](https://github.com/gotomicro/ekit/pull/79)
- [slice: 支持 Diff*, Intersection*, Union*, Index* 类方法](https://github.com/gotomicro/ekit/pull/83)
- [slice: 聚合函数 Max, Min 和 Sum](https://github.com/gotomicro/ekit/pull/82)
- [slice: FilterMap 和 Delete 方法](https://github.com/gotomicro/ekit/pull/91)
- [pool: 重构TaskPool](https://github.com/gotomicro/ekit/pull/93)
- [slice: Reverse 和 ReverseSelf方法](https://github.com/gotomicro/ekit/pull/96)
- [pool: 重构TaskPool —— 清理注释](https://github.com/gotomicro/ekit/pull/95)
- [Add() 和 NewLinkedListOf()](https://github.com/ecodeclub/ekit/pull/26)
- [Get](https://github.com/ecodeclub/ekit/pull/31)
- [Append](https://github.com/ecodeclub/ekit/pull/34)
- [Append 方法改造为不定参数形式](https://github.com/ecodeclub/ekit/pull/58)
- [Delete](https://github.com/ecodeclub/ekit/pull/38)
- [Len,Cap,NewLinkedList](https://github.com/ecodeclub/ekit/pull/51)
- [Range](https://github.com/ecodeclub/ekit/pull/46)
- [重构为双向循环链表](https://github.com/ecodeclub/ekit/pull/73)
- [pool: 修复 Pool TestPool 测试不稳定的问题](https://github.com/ecodeclub/ekit/pull/40)
- [ekit:引入 golangci-lint 和 goimports](https://github.com/ecodeclub/ekit/pull/54)
- [ekit: 实现了 TaskPool](https://github.com/ecodeclub/ekit/pull/57)
- [ekit: 修复OnDemandBlockTaskPool测试不稳定](https://github.com/ecodeclub/ekit/pull/70)
- [syncx: 使用泛型封装 sync.Map](https://github.com/ecodeclub/ekit/pull/79)
- [slice: 支持 Diff*, Intersection*, Union*, Index* 类方法](https://github.com/ecodeclub/ekit/pull/83)
- [slice: 聚合函数 Max, Min 和 Sum](https://github.com/ecodeclub/ekit/pull/82)
- [slice: FilterMap 和 Delete 方法](https://github.com/ecodeclub/ekit/pull/91)
- [pool: 重构TaskPool](https://github.com/ecodeclub/ekit/pull/93)
- [slice: Reverse 和 ReverseSelf方法](https://github.com/ecodeclub/ekit/pull/96)
- [pool: 重构TaskPool —— 清理注释](https://github.com/ecodeclub/ekit/pull/95)
2 changes: 1 addition & 1 deletion .codecov.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2021 gotomicro
# Copyright 2021 ecodeclub
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
4 changes: 2 additions & 2 deletions .deepsource.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2021 gotomicro
# Copyright 2021 ecodeclub
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand All @@ -19,7 +19,7 @@ name = "go"
enabled = true

[analyzers.meta]
import_root = "github.com/gotomicro/ekit"
import_root = "github.com/ecodeclub/ekit"
dependencies_vendored = false

[[analyzers]]
Expand Down
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ assignees: ''

**仅限中文**

在提之前请先查找[已有 issues](https://github.com/gotomicro/eorm/issues),避免重复上报。
在提之前请先查找[已有 issues](https://github.com/ecodeclub/eorm/issues),避免重复上报。

并且确保自己已经:
- [ ] 阅读过文档
Expand Down
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/question.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ labels: question

**仅限中文**

在提之前请先查找[已有 issues](https://github.com/gotomicro/eorm/issues),避免重复上报。
在提之前请先查找[已有 issues](https://github.com/ecodeclub/eorm/issues),避免重复上报。

并且确保自己已经:
- [ ] 阅读过文档
Expand Down
2 changes: 1 addition & 1 deletion .github/pre-commit
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/sh
# Copyright 2021 gotomicro
# Copyright 2021 ecodeclub
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion .github/pre-push
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/sh
# Copyright 2021 gotomicro
# Copyright 2021 ecodeclub
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/changelog.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2021 gotomicro
# Copyright 2021 ecodeclub
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/go-fmt.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2021 gotomicro
# Copyright 2021 ecodeclub
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -28,7 +28,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: ">=1.18.0"
go-version: ">=1.20.0"

- name: Install goimports
run: go install golang.org/x/tools/cmd/goimports@latest
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2021 gotomicro
# Copyright 2021 ecodeclub
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -28,7 +28,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.18
go-version: 1.20.0

- name: Build
run: go build -v ./...
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/golangci-lint.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2021 gotomicro
# Copyright 2021 ecodeclub
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -33,7 +33,7 @@ jobs:
steps:
- uses: actions/setup-go@v3
with:
go-version: 1.18
go-version: 1.20.0
- uses: actions/checkout@v3
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/license.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2021 gotomicro
# Copyright 2021 ecodeclub
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/stale.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2021 gotomicro
# Copyright 2021 ecodeclub
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
4 changes: 2 additions & 2 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2021 gotomicro
# Copyright 2021 ecodeclub
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand All @@ -13,6 +13,6 @@
# limitations under the License.

run:
go: '1.18'
go: '1.20'
skip-dirs:
- .idea
6 changes: 3 additions & 3 deletions .licenserc.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"**/*.go": "// Copyright 2021 gotomicro",
"**/*.{yml,toml}": "# Copyright 2021 gotomicro",
"**/*.sh": "# Copyright 2021 gotomicro"
"**/*.go": "// Copyright 2021 ecodeclub",
"**/*.{yml,toml}": "# Copyright 2021 ecodeclub",
"**/*.sh": "# Copyright 2021 ecodeclub"
}
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ bench:

.PHONY: ut
ut:
@go test -race ./...
@go test -tags=goexperiment.arenas -race ./...

.PHONY: setup
setup:
Expand Down
2 changes: 1 addition & 1 deletion bean/copier/copy.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2021 gotomicro
// Copyright 2021 ecodeclub
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion bean/copier/errors.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2021 gotomicro
// Copyright 2021 ecodeclub
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion bean/copier/pure_reflect_copier.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2021 gotomicro
// Copyright 2021 ecodeclub
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
6 changes: 2 additions & 4 deletions bean/copier/pure_reflect_copier_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2021 gotomicro
// Copyright 2021 ecodeclub
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand All @@ -18,7 +18,7 @@ import (
"reflect"
"testing"

"github.com/gotomicro/ekit"
"github.com/ecodeclub/ekit"
"github.com/stretchr/testify/assert"
)

Expand Down Expand Up @@ -476,7 +476,6 @@ func TestReflectCopier_CopyTo(t *testing.T) {
}

func BenchmarkReflectCopier_Copy_PureRunTime(b *testing.B) {

for i := 1; i <= b.N; i++ {
_ = CopyTo(&SimpleSrc{
Name: "大明",
Expand All @@ -487,7 +486,6 @@ func BenchmarkReflectCopier_Copy_PureRunTime(b *testing.B) {
}

func BenchmarkReflectCopier_CopyComplexStruct_WithPureRuntime(b *testing.B) {

for i := 1; i <= b.N; i++ {
_ = CopyTo(&ComplexSrc{
Simple: SimpleSrc{
Expand Down
2 changes: 1 addition & 1 deletion bean/copier/reflect_copier.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2021 gotomicro
// Copyright 2021 ecodeclub
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
Loading

0 comments on commit 71ad71d

Please sign in to comment.