From 16888ead0d054dc3f4ffc028cc3ce76b7777eca8 Mon Sep 17 00:00:00 2001 From: mwoss Date: Sun, 7 Apr 2024 23:49:54 +0200 Subject: [PATCH 1/4] Add docs section with alternative libraries --- README.md | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 4793c7a..3a7bc1b 100644 --- a/README.md +++ b/README.md @@ -24,6 +24,11 @@ Run `go get github.com/shopspring/decimal` Decimal library requires Go version `>=1.10` +## Documentation + +http://godoc.org/github.com/shopspring/decimal + + ## Usage ```go @@ -59,9 +64,16 @@ func main() { } ``` -## Documentation +## Alternative libraries -http://godoc.org/github.com/shopspring/decimal +When working with decimal numbers, you might face problems this library is not perfectly suited for. +Fortunately, thanks to the wonderful community we have a dozen other libraries that you can choose from. +Explore other alternatives to find the one that best fits your needs :) + +* [cockroachdb/apd](https://github.com/cockroachdb/apd) - high precision, mutable and rich API similar to `big.Int`, higher performance than this library +* [alpacahq/alpacadecimal](https://github.com/alpacahq/alpacadecimal) - high performance, low precision (12 digits), with fully compatible API to this library +* [govalues/decimal](https://github.com/govalues/decimal) - high performance, zero-allocation, low precision (19 digits) +* [greatcloak/decimal](https://github.com/greatcloak/decimal) - fork of this library, with out-of-the-box BSON marshaling support ## FAQ From 508fc4f655953db7c71f0899de2e0886498e6b58 Mon Sep 17 00:00:00 2001 From: mwoss Date: Sun, 7 Apr 2024 23:52:31 +0200 Subject: [PATCH 2/4] Grammar fix --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 3a7bc1b..cbcb53f 100644 --- a/README.md +++ b/README.md @@ -71,7 +71,7 @@ Fortunately, thanks to the wonderful community we have a dozen other libraries t Explore other alternatives to find the one that best fits your needs :) * [cockroachdb/apd](https://github.com/cockroachdb/apd) - high precision, mutable and rich API similar to `big.Int`, higher performance than this library -* [alpacahq/alpacadecimal](https://github.com/alpacahq/alpacadecimal) - high performance, low precision (12 digits), with fully compatible API to this library +* [alpacahq/alpacadecimal](https://github.com/alpacahq/alpacadecimal) - high performance, low precision (12 digits), fully compatible API with this library * [govalues/decimal](https://github.com/govalues/decimal) - high performance, zero-allocation, low precision (19 digits) * [greatcloak/decimal](https://github.com/greatcloak/decimal) - fork of this library, with out-of-the-box BSON marshaling support From 8bc6874bc6f51791edd6c1a5296455713e635874 Mon Sep 17 00:00:00 2001 From: mwoss Date: Mon, 8 Apr 2024 00:15:37 +0200 Subject: [PATCH 3/4] Grammar fix again :3 --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index cbcb53f..f7ae55d 100644 --- a/README.md +++ b/README.md @@ -70,7 +70,7 @@ When working with decimal numbers, you might face problems this library is not p Fortunately, thanks to the wonderful community we have a dozen other libraries that you can choose from. Explore other alternatives to find the one that best fits your needs :) -* [cockroachdb/apd](https://github.com/cockroachdb/apd) - high precision, mutable and rich API similar to `big.Int`, higher performance than this library +* [cockroachdb/apd](https://github.com/cockroachdb/apd) - high precision, mutable and rich API similar to `big.Int`, better performance than this library * [alpacahq/alpacadecimal](https://github.com/alpacahq/alpacadecimal) - high performance, low precision (12 digits), fully compatible API with this library * [govalues/decimal](https://github.com/govalues/decimal) - high performance, zero-allocation, low precision (19 digits) * [greatcloak/decimal](https://github.com/greatcloak/decimal) - fork of this library, with out-of-the-box BSON marshaling support From 8d18d5f44904cd6f00f6aba872ace58a90847281 Mon Sep 17 00:00:00 2001 From: mwoss Date: Mon, 8 Apr 2024 00:18:41 +0200 Subject: [PATCH 4/4] Grammar fix again --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index f7ae55d..3ae049c 100644 --- a/README.md +++ b/README.md @@ -70,7 +70,7 @@ When working with decimal numbers, you might face problems this library is not p Fortunately, thanks to the wonderful community we have a dozen other libraries that you can choose from. Explore other alternatives to find the one that best fits your needs :) -* [cockroachdb/apd](https://github.com/cockroachdb/apd) - high precision, mutable and rich API similar to `big.Int`, better performance than this library +* [cockroachdb/apd](https://github.com/cockroachdb/apd) - high precision, mutable and rich API similar to `big.Int`, more performant than this library * [alpacahq/alpacadecimal](https://github.com/alpacahq/alpacadecimal) - high performance, low precision (12 digits), fully compatible API with this library * [govalues/decimal](https://github.com/govalues/decimal) - high performance, zero-allocation, low precision (19 digits) * [greatcloak/decimal](https://github.com/greatcloak/decimal) - fork of this library, with out-of-the-box BSON marshaling support