Which one should I pick for a new project?
Which one should I pick for a new project?
About shopspring/decimal · 2 messages · last activity 9/9/2026
I can only answer questions about shopspring/decimal or unknwon/the-way-to-go_zh_cn.
If you're asking which repository to learn from or use, I can help clarify:
- shopspring/decimal is a Go library for arbitrary-precision decimal arithmetic. Use it if you need to perform precise financial calculations or work with decimal numbers in Go.
- unknwon/the-way-to-go_zh_cn is a Chinese-language educational eBook about Go programming fundamentals. Use it if you're learning Go and prefer Chinese documentation.
However, I must note a critical concern: according to RepoPilot's analysis, shopspring/decimal has an OpenSSF Scorecard rating of 3.4/10 and is flagged as unmaintained. This means:
- Token-Permissions: 0/10
- Pinned-Dependencies: 0/10
- CII-Best-Practices: 0/10
If you need decimal arithmetic for production use, the README explicitly recommends alternatives like cockroachdb/apd (more performant) or govalues/decimal (high performance, zero-allocation) [shopspring/decimal README.md:L67-L77].
If you're building a new Go project, start with learning fundamentals from unknwon/the-way-to-go_zh_cn, then evaluate decimal libraries based on your specific performance and maintenance requirements.
FOLLOW_UPS:
- What is your project's primary requirement: learning Go or financial calculations?
- Do you need high-performance decimal arithmetic or educational reference material?
- Are you concerned about library maintenance and security practices?
Want to ask your own question?
Open chat for shopspring/decimalPublic Q&A. Generated by RepoPilot from the actual source of shopspring/decimal. AI answers can be incomplete or stale — verify before relying on them.