Skip to content

added NewGeneric creation function and related test units#157

Open
BruceDu521 wants to merge 1 commit intoorcaman:masterfrom
BruceDu521:master
Open

added NewGeneric creation function and related test units#157
BruceDu521 wants to merge 1 commit intoorcaman:masterfrom
BruceDu521:master

Conversation

@BruceDu521
Copy link

I noticed issue #135 , so I added a function NewGeneric[K comparable, V any]() to create a generic type Key map. I also wrote 2 tests and 2 benchmark test for it.

There are some blank lines and spaces in the code, caused by the automatic formatting when vscode saves .go file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant