|
b332088638
|
walk: reflect value of struct
|
2024-09-18 18:15:01 +02:00 |
|
|
3556c5b805
|
racer: test with timeout
|
2024-09-18 13:41:55 +02:00 |
|
|
ee89092ea4
|
racer: refactor. no hard code, don't repeat
|
2024-09-18 13:11:42 +02:00 |
|
|
3cc29f8383
|
racer: add timeout test
|
2024-09-18 13:08:31 +02:00 |
|
|
2dc7275f15
|
racer: use select to syncrho
|
2024-09-18 12:58:07 +02:00 |
|
|
5042f1048e
|
racer: refactor code to not repeat
|
2024-09-18 12:54:47 +02:00 |
|
|
3538818769
|
racer: test with httptest server
|
2024-09-18 12:45:58 +02:00 |
|
|
491d2c1b22
|
racer: add a first racer test
|
2024-09-18 10:15:53 +02:00 |
|
|
d83f1c6f4c
|
concurrency: use channel to handle racing situation
|
2024-09-18 09:48:00 +02:00 |
|
|
cd4f6fc6c7
|
concurrency: add timeout, pass the url as argument into goroutine, but still have concurrent write issue
|
2024-09-18 09:33:38 +02:00 |
|
|
cb8e6d23f3
|
concurrency: use goroutine(too fast)
|
2024-09-18 09:26:39 +02:00 |
|
|
93d9a14858
|
concurrency: add func, test, and bm test (mock and stub)
|
2024-09-18 09:16:56 +02:00 |
|
|
05226985c7
|
***countdown: add configurableSleeper abstraction
|
2024-09-17 21:43:48 +02:00 |
|
|
72e6ac9b77
|
[***]countdown: mock with sequence
|
2024-09-17 21:30:53 +02:00 |
|
|
56be76b275
|
countdown: add first mock for sleep
|
2024-09-17 21:21:07 +02:00 |
|
|
d7840e9cb7
|
countdown: add basic countdown
|
2024-09-17 21:11:08 +02:00 |
|
|
5f02a8fbde
|
greet: DI
|
2024-09-17 16:12:39 +02:00 |
|
|
f573268be9
|
dict: add delete method
|
2024-09-17 11:35:22 +02:00 |
|
|
c04a2e1d65
|
dict: add update method
|
2024-09-17 11:31:00 +02:00 |
|
|
4be80f4477
|
dict: deal with re-add
|
2024-09-17 10:19:25 +02:00 |
|
|
58efd33b20
|
dict: add Add function and tests
|
2024-09-17 10:10:07 +02:00 |
|
|
7e713f54de
|
dict: refacto test for error handling
|
2024-09-17 09:58:41 +02:00 |
|
|
fc67cf14ff
|
dict: deal with unknown keys
|
2024-09-17 09:55:36 +02:00 |
|
|
baff9ee722
|
dict: create a type
|
2024-09-11 15:22:42 +02:00 |
|
|
dd61fb557b
|
dict: refact test
|
2024-09-11 14:07:00 +02:00 |
|
|
73ab7dc92d
|
dict: add simple search method
|
2024-09-11 13:48:59 +02:00 |
|
|
4a497b9f93
|
wallet: add example
|
2024-09-11 11:49:10 +02:00 |
|
|
82ea599aaa
|
wallet: also assert no error
|
2024-09-11 11:43:34 +02:00 |
|
|
20606d3ee5
|
wallet: improve assertError again by creating a custom error type
|
2024-09-11 11:35:52 +02:00 |
|
|
9a2478f947
|
wallet: improve assertError function
|
2024-09-11 11:32:40 +02:00 |
|
|
4be1d0d598
|
wallet: extract assertError helper function
|
2024-09-11 11:28:45 +02:00 |
|
|
f6b17eaff3
|
wallet: check withdraw border cases
|
2024-09-11 11:26:39 +02:00 |
|
|
8ed0235074
|
wallet: add withdraw method
|
2024-09-11 11:22:12 +02:00 |
|
|
36ef78fb92
|
wallet: implement stringer interface
|
2024-09-11 11:17:23 +02:00 |
|
|
71bc024fe2
|
wallet: use self defined type Bitcoin
|
2024-09-11 11:15:24 +02:00 |
|
|
8644bf547b
|
wallet: add wallet struct and balance funcs
|
2024-09-11 11:08:53 +02:00 |
|
|
f5ecd40f01
|
shapes: make table test more readable
|
2024-09-11 09:23:19 +02:00 |
|
|
47a831ab33
|
shapes: add Triangle area test
|
2024-09-11 09:17:21 +02:00 |
|
|
595ed65745
|
shapes: transform to a table test
|
2024-09-11 09:14:28 +02:00 |
|
|
d708e70352
|
shapes: add Shape interface
|
2024-09-11 09:10:19 +02:00 |
|
|
ff89c50710
|
shapes: add Circle struct and Area func
|
2024-09-11 09:06:46 +02:00 |
|
|
d5d910db5a
|
shapes: use Rectangle as receiver
|
2024-09-11 09:03:57 +02:00 |
|
|
5de98f3ac8
|
shapes: create a rectangle struct
|
2024-09-11 08:58:04 +02:00 |
|
|
9381e4c92a
|
shapes: add rectangle perimeter and area funcs
|
2024-09-11 08:55:19 +02:00 |
|
|
2353543f7d
|
sum: add local test check function
|
2024-09-10 21:56:18 +02:00 |
|
|
42aaff6c2e
|
sum: add SumAllTails
|
2024-09-10 21:51:21 +02:00 |
|
|
4bfd9eda4f
|
sum: use slices.Equal
|
2024-09-10 21:43:55 +02:00 |
|
|
fac93ea9ec
|
sum: use DeepEqual to compare
|
2024-09-10 21:43:19 +02:00 |
|
|
29215486db
|
sum: use variadic functions
|
2024-09-10 21:38:18 +02:00 |
|
|
e905c600f3
|
sum: sumAll
|
2024-09-10 21:34:27 +02:00 |
|