Commit Graph

95 Commits

Author SHA1 Message Date
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
fc419ec3be sum: slice 2024-09-10 21:27:13 +02:00
b427b8fbfb sum: range 2024-09-10 21:16:01 +02:00
5775ea5e50 sum: v1 2024-09-10 21:15:12 +02:00
fb1e5e2835 iteration: Use strings pkg and compare the bench results 2024-09-10 13:39:14 +02:00
75304d4c23 iteration: add repeatTime as an argument 2024-09-10 13:32:46 +02:00
2684521bdd iteration: add example for Repeat function 2024-09-10 13:30:09 +02:00
de5d9f39b6 iteration: add benchmark test 2024-09-10 13:23:32 +02:00
917ce1638f iteration: add simple iteration function 2024-09-10 13:20:33 +02:00
ad9df93776 integers: add doc for Add function 2024-09-10 13:10:08 +02:00
bdef054bb6 integers: add testable examples 2024-09-10 13:09:20 +02:00
effff8ae16 integers: add adder 2024-09-10 13:04:47 +02:00
25ed3404d8 add README 2024-09-10 11:50:36 +02:00
268677b9ad reorgniaze the repo 2024-09-10 11:50:18 +02:00
b50e202a97 Hello: multi language v2 2024-09-10 11:44:21 +02:00
576e29f1ba Hello: multiple languages 2024-09-10 11:35:30 +02:00
f593fb28de hello_test: create an assert function 2024-09-10 11:20:52 +02:00
5e32007c89 Hello: use const for magic strings 2024-09-10 11:16:15 +02:00
cbd4cf628f hello default world 2024-09-10 11:12:42 +02:00
f13632e425 hello %s 2024-09-10 11:09:31 +02:00
aa8ec804e9 first test for hello world 2024-09-10 11:06:51 +02:00