- 
          
 - 
                Notifications
    
You must be signed in to change notification settings  - Fork 1.7k
 
feat(container/glist): add generic list feature #4483
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this 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.
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
This reverts commit 98b3059.
Co-authored-by: Copilot <[email protected]>
There was a problem hiding this 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.
There was a problem hiding this 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 <[email protected]>
There was a problem hiding this 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.
This reverts commit c3fae3c.
It is wrote with glist.List's and list.List's source codes and improve to support T type.