Commit Graph

162 Commits

Author SHA1 Message Date
lWolvesl 002ce3fefd routine 2023-02-26 18:11:35 +08:00
Ralph Caraveo b0e345089a
Adding github starhistory graphic 2022-09-09 09:53:09 -07:00
pem eb73d93c11 improved efficiency 2022-07-27 09:52:15 -07:00
Jeff Widman 41eeb0673a Default to latest patch version in CI, bump actions
1. Stop pinning patch version... IIUC the docs correctly, this will let it use whatever the latest patch version is.
2. Bump the actions versions `v3`. From a quick skim, none of the new changes really affect this workflow so it's safe to update. And since this is just CI, it should be quickly obvious if something is broken.
2022-07-27 09:44:40 -07:00
Jeff Widman 29b450944d Point badges at `v2`
Point the badges/docs links at the `v2` code.
2022-07-27 09:43:12 -07:00
Keiichi Hirobe 76d8b16731 add wg.Wait() at the end of Test_CloneConcurrent 2022-05-30 08:33:00 -07:00
Keiichi Hirobe 2118748fb0 use github.com/deckarep/golang-set/v2 to import module 2022-05-30 08:29:45 -07:00
Nao Yonashiro 29bd72cb4a feat: improve Add performance 2022-03-28 17:27:30 -07:00
Nao Yonashiro abcdb7d406 test: fix benchmark 2022-03-28 17:27:30 -07:00
Jeff Widman 42e82971af Delete `New*SetFromSlice()` and `NewSetWith()` APIs
These are no longer needed now that both `NewSet()` and
`NewThreadUnsafeSet()` accept optional vals.

Removing them simplifies the API surface, so that developers aren't left
scratching their heads wondering why there's both a `NewSet(vals ...T)`
and a `NewSetFromSlice()` that do the same thing.

Previously they couldn't be removed due to backwards compatibility
concerns, but with the `go 1.18` drop of generics, this library will be
cutting a new `v2` release, so a perfect time to cleanup this confusing
API as well.
2022-03-27 21:37:21 -07:00
Jeff Widman 8f063a4c36 Make `NewThreadUnsafeSet()` take optional vals.
This makes the API a bit cleaner, and matches the signature of `NewSet()`.

Fix https://github.com/deckarep/golang-set/issues/80
2022-03-27 10:30:58 -07:00
Jeff Widman d0d91221d4 Remove dead code
`golanglint-ci` flagged that this is dead code.
2022-03-27 10:27:35 -07:00
Ralph Caraveo 1e2816b8c4 bump go.mod file 2022-03-26 20:57:49 -07:00
Ralph Caraveo 2904a97044 Update README.md 2022-03-26 20:29:05 -07:00
Ralph Caraveo 7c9ba67576 Fixes to build with Go 1.18 official release thanks to @billinghamj input - Thank You 2022-03-26 20:29:05 -07:00
Ralph Caraveo 1035f5fe3a Updating final info 2022-03-26 20:29:05 -07:00
Ralph Caraveo c480848b7d removing broken code 2022-03-26 20:29:05 -07:00
Ralph Caraveo 07f9e006ef removing benchmark since build doesn't run to completion 2022-03-26 20:29:05 -07:00
Ralph Caraveo 7e69a8cc4c adding stable:false flag 2022-03-26 20:29:05 -07:00
Ralph Caraveo f169e63c2c fixing go version in yml 2022-03-26 20:29:05 -07:00
Ralph Caraveo bc2c3cdced bump go version in yml 2022-03-26 20:29:05 -07:00
Ralph Caraveo b1d5b61651 update to notable projects/companies section 2022-03-26 20:29:05 -07:00
Ralph Caraveo 141f293f1b update docs 2022-03-26 20:29:05 -07:00
Ralph Caraveo 2f430f3896 updating README.md 2022-03-26 20:29:05 -07:00
Ralph Caraveo 5b3a6ad19e adding workflow build badge 2022-03-26 20:29:05 -07:00
Ralph Caraveo 97531fa5cb updating gofmt 2022-03-26 20:29:05 -07:00
Ralph Caraveo aeb3584e71 removing commented out code 2022-03-26 20:29:05 -07:00
Ralph Caraveo 1658d57751 Removing all temp *Generic based names by swapping with the original names to minimize changes 2022-03-26 20:29:05 -07:00
Ralph Caraveo cd0ae61739 updating iterator example test to be an actual test function 2022-03-26 20:29:05 -07:00
Ralph Caraveo d6cad9344a Updating benchmarks 2022-03-26 20:29:05 -07:00
Ralph Caraveo 94d35a508a retrofitting the marshal/unmarshal api 2022-03-26 20:29:05 -07:00
Ralph Caraveo 1530daace9 updating all unit tests to use generic variants 2022-03-26 20:29:05 -07:00
Ralph Caraveo 3525e6e3e8 Adding constructor functions for generic set variations 2022-03-26 20:29:05 -07:00
Ralph Caraveo c310c44430 Adding thread-safe wrapped variant with generics 2022-03-26 20:29:05 -07:00
Ralph Caraveo dbb0d6a4e7 Adding Powerset 2022-03-26 20:29:05 -07:00
Ralph Caraveo cdebfe82a8 generics proof of concept 2022-03-26 20:29:05 -07:00
Ralph Caraveo 645e1ba83b fix go mod 2021-12-16 12:49:45 -08:00
Ralph Caraveo ebd0439030 make testing verbose 2021-12-16 11:47:59 -08:00
Ralph Caraveo 82e1f838bf migrating to github workflows 2021-12-16 11:47:59 -08:00
Ralph Caraveo fd7989e6e4 only do tip and previous version of Go 2021-12-16 11:47:59 -08:00
Ralph Caraveo bcfae0b45e updating travis go versions 2021-12-16 11:47:59 -08:00
Ralph Caraveo 88d3a9269f adding mod file 2021-12-16 11:47:59 -08:00
Devendranath Thadi 03b572015f Travis-ci: added support for ppc64le and updated go versions 1.14 & 1.15
Signed-off-by: Devendranath Thadi <devendranath.thadi3@gmail.com>
2020-11-28 18:13:24 -08:00
nextzhou 699df6a3ac check cardinality before check subset 2018-09-27 08:06:49 -07:00
Rob Yoder cbaa98ba55 Fix PowerSet return values
Previously, calling `PowerSet()` on a `threadSafeSet` would return a `threadUnsafeSet` of `threadUnsafeSet`s. Now it returns a `threadSafeSet` of `threadSafeSet`s.
2018-08-31 11:06:37 -07:00
Rob Yoder 82e95d278d Add thread safe test for PowerSet()
This test fails but shouldn’t.
2018-08-31 11:06:37 -07:00
Ralph Caraveo 504e848d77 Adding tests 2018-06-03 14:46:16 -07:00
Ralph Caraveo 8f7e665726 Pop returns an arbitrary item from the set. 2018-06-03 14:46:16 -07:00
lorneli b87793d5de threadUnsafeSet: reduce allocation in Add func
In Add func, there's no need to alloc a new empty struct
if corresponding key-value pair exists.
2018-03-28 11:58:00 -07:00
Jun Kimura 1d4478f51b add Each method 2017-10-13 14:24:20 -07:00