Commit Graph

24 Commits

Author SHA1 Message Date
yuanjin
3ba27e24d3 - fix utils test 2020-01-13 10:23:14 +08:00
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>
2019-01-24 08:59:56 +03:00
Emir Pasic
0887bbc9f4 - ToString function to convert to string from any type 2017-03-06 03:40:29 +01:00
Emir Pasic
3389248bfc - time comparator fmt and documentation update 2017-03-03 23:24:20 +01:00
RichardHightower
1d7bfb173f Comparator for time. 2016-12-20 10:35:13 -08:00
RichardHightower
d036ecbbb9 added time comparison 2016-12-20 10:32:18 -08:00
Emir Pasic
b5ede7d429 - all comparators for builtin types 2016-09-17 22:11:18 +02:00
Emir Pasic
0a96a47f6b - fix test for int comparator 2016-09-07 05:19:07 +02:00
Emir Pasic
320ab1bc73 Revert "Make IntComparator a bit more direct" 2016-09-07 05:07:13 +02:00
Emir Pasic
f310ac001e - fix comparator test 2016-08-07 01:57:52 +02:00
glenherb
84564da2b4 Make IntComparator a bit more direct 2016-08-06 16:41:29 -05:00
Emir Pasic
213367f1ca - replace long bsd text with short in all .go files 2016-06-27 04:21:09 +02:00
Emir Pasic
d7a31571cc - add reversible iterators to lists (array list and doubly-linked list)
- documentation and tests updates
2016-06-25 18:17:48 +02:00
Emir Pasic
59bebe43ce - update all documentation to be in godoc style 2016-06-25 17:02:21 +02:00
Emir Pasic
7b3992bef3 - replace timsort with go's sort 2016-06-25 05:35:13 +02:00
Emir Pasic
ef9baa808a - golint 2016-06-24 21:52:16 +02:00
Emir Pasic
c5826ac043 sorting on containers, lists and as a utils method (test+documentation) 2015-03-08 03:13:26 +01:00
emirpasic
19ca842c34 - starting work on sorting functions using tim's sort obtained from [https://github.com/psilva261/timsort] 2015-03-07 20:25:27 +01:00
emirpasic
8e5760a16e - make ArrayStack make use of our ArrayList
- add Values() method to stacks interface
- write tests
2015-03-07 18:19:58 +01:00
emirpasic
28f559cc09 ArrayList addition (inc. test, example and documentation) 2015-03-07 18:05:34 +01:00
emirpasic
a2f7d2482e switching to BSD-style license [http://www.reddit.com/r/golang/comments/2y2x5v/gods_data_structures_for_go/cp6a90n] 2015-03-06 17:10:34 +01:00
Emir Pasic
1f7be2eba6 fix in string comparator [-1,0,1] only returns 2015-03-06 01:35:03 +01:00
emirpasic
2a274c57e5 - comparator test for custom comparator 2015-03-04 19:38:09 +01:00
emirpasic
271d14d221 - comparator with tests 2015-03-04 18:55:52 +01:00