Skip to content

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 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.

@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 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants