Paul Chesnais
14f714261f
Generics migration ( #237 )
...
* Generics migration
This attempts to migrate this library in the least invasive way by preserving as
much of the original API as possible. It does not change the tests in a
meaningful way nor does it attempt to upgrade any logic that can be simplified
or improved with generics. This is purely an API migration, and still requires a
lot of additional work to be fully ready.
* Fix a few broken tests around serialization
* Add v2 suffix
* Temporarily change mod name for testing
* Rename module to /v2
5 months ago
Emir Pasic
363df0e21f
Comparator tests
2 years ago
Emir Pasic
a27d480bcc
Simplify ToString function for types (avoid unnecessary casting)
2 years ago
yuanjin
3ba27e24d3
- fix utils test
4 years ago
Iskander (Alex) Sharipov
3978ee8254
utils: remove excessive type assertions
...
Assign type switch variable to get properly-typed value
inside case clauses.
Signed-off-by: Iskander Sharipov <quasilyte@gmail.com>
5 years ago
Emir Pasic
0887bbc9f4
- ToString function to convert to string from any type
7 years ago
Emir Pasic
3389248bfc
- time comparator fmt and documentation update
7 years ago
RichardHightower
1d7bfb173f
Comparator for time.
8 years ago
RichardHightower
d036ecbbb9
added time comparison
8 years ago
Emir Pasic
b5ede7d429
- all comparators for builtin types
8 years ago
Emir Pasic
0a96a47f6b
- fix test for int comparator
8 years ago
Emir Pasic
320ab1bc73
Revert "Make IntComparator a bit more direct"
8 years ago
Emir Pasic
f310ac001e
- fix comparator test
8 years ago
glenherb
84564da2b4
Make IntComparator a bit more direct
8 years ago
Emir Pasic
213367f1ca
- replace long bsd text with short in all .go files
8 years ago
Emir Pasic
d7a31571cc
- add reversible iterators to lists (array list and doubly-linked list)
...
- documentation and tests updates
8 years ago
Emir Pasic
59bebe43ce
- update all documentation to be in godoc style
8 years ago
Emir Pasic
7b3992bef3
- replace timsort with go's sort
8 years ago
Emir Pasic
ef9baa808a
- golint
8 years ago
Emir Pasic
c5826ac043
sorting on containers, lists and as a utils method (test+documentation)
9 years ago
emirpasic
19ca842c34
- starting work on sorting functions using tim's sort obtained from [ https://github.com/psilva261/timsort ]
9 years ago
emirpasic
8e5760a16e
- make ArrayStack make use of our ArrayList
...
- add Values() method to stacks interface
- write tests
9 years ago
emirpasic
28f559cc09
ArrayList addition (inc. test, example and documentation)
9 years ago
emirpasic
a2f7d2482e
switching to BSD-style license [ http://www.reddit.com/r/golang/comments/2y2x5v/gods_data_structures_for_go/cp6a90n ]
9 years ago
Emir Pasic
1f7be2eba6
fix in string comparator [-1,0,1] only returns
9 years ago
emirpasic
2a274c57e5
- comparator test for custom comparator
9 years ago
emirpasic
271d14d221
- comparator with tests
9 years ago