currency - Currency amounts and formatting for Go

This page summarizes the projects mentioned and recommended in the original post on /r/golang

Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
  • currency

    Currency handling for Go.

  • intl

    A PHP internationalization library, powered by CLDR data.

  • So I've decided to write and release my own package. Thanks to my experience writing commerceguys/intl, I was able to reduce the size of the embedded data from megabytes to ~30kb. The design goals are in the README, and I've worked hard to ensure that the code is idiomatic and performant. I would love to get feedback, as this is my first public Go code.

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
  • decimal

    A high-performance, arbitrary-precision, floating-point decimal library. (by ericlagergren)

  • Note: In benchmarks ericlagergren/decimal was noticeably faster than cockroachdb/apd, but it has known bugs when used with go mod, so I decided to wait and go with cockroachdb/apd for now. The Amount struct wraps the decimal implementation completely, making it easy to do the swap later without breaking BC.

  • apd

    Arbitrary-precision decimals for Go

  • Note: In benchmarks ericlagergren/decimal was noticeably faster than cockroachdb/apd, but it has known bugs when used with go mod, so I decided to wait and go with cockroachdb/apd for now. The Amount struct wraps the decimal implementation completely, making it easy to do the swap later without breaking BC.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts