Skip to content

feat(container/glist): add generic list feature#4483

Merged
hailaz merged 25 commits intomasterfrom
feat/t_list
Nov 20, 2025
Merged

feat(container/glist): add generic list feature#4483
hailaz merged 25 commits intomasterfrom
feat/t_list

Conversation

@joy999
Copy link
Contributor

@joy999 joy999 commented Oct 18, 2025

It is wrote with glist.List's and list.List's source codes and improve to support T type.

@joy999 joy999 requested a review from Copilot October 18, 2025 02:46
@joy999 joy999 added the feature label Oct 18, 2025
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR introduces a generic doubly linked list implementation TList[T] to the glist package, with supporting tests, examples, and benchmarks.

  • Adds a new generic list implementation with concurrency support and JSON/deep copy utilities.
  • Provides extensive unit tests, examples, and benchmarks for TList[T].

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 18 comments.

File Description
container/glist/glist_t.go New generic TList[T] implementation with API similar to existing List, plus JSON, deepcopy, iterators, and concurrency controls.
container/glist/glist_z_unit_t_test.go Unit tests covering core operations, iterators, JSON, and deep copy for TList[any].
container/glist/glist_z_example_t_test.go Example usage for TList[T] APIs.
container/glist/glist_z_bench_t_test.go Benchmarks for concurrent push/pop/len operations on TList[any].

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

joy999 and others added 15 commits October 18, 2025 10:56
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@joy999 joy999 requested a review from Copilot October 18, 2025 03:23
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated 13 comments.


Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@joy999 joy999 requested a review from Copilot October 18, 2025 05:04
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated 4 comments.


Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@joy999 joy999 requested a review from Copilot October 18, 2025 05:29
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated 6 comments.


Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@joy999 joy999 added the done This issue is done, which may be release in next version. label Oct 18, 2025
gqcn
gqcn previously requested changes Oct 22, 2025
@gqcn gqcn changed the title add t list. feat(container/glist): generic list Oct 22, 2025
@gqcn gqcn changed the title feat(container/glist): generic list feat(container/glist): new generic list feature Oct 22, 2025
@gqcn gqcn changed the title feat(container/glist): new generic list feature feat(container/glist): add generic list feature Oct 22, 2025
@gqcn gqcn removed the done This issue is done, which may be release in next version. label Oct 22, 2025
@joy999 joy999 requested a review from gqcn October 23, 2025 03:53
@hailaz hailaz added the ready to merge Used in PR, which means this PR is reviewed. label Nov 20, 2025
@hailaz hailaz merged commit 6c2155b into master Nov 20, 2025
20 checks passed
@hailaz hailaz deleted the feat/t_list branch November 20, 2025 10:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature ready to merge Used in PR, which means this PR is reviewed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants