🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

github.com/adxgun/go-currency

Package Overview
Dependencies
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/adxgun/go-currency

Source
Go Modules
Version
v0.0.0-20190214043132-53af212b70b1
Version published
Created
Source

go-currency

Human readable money format

This is a tiny library to format number to any currency.

  • Very tiny
  • Supports all earth's currency

How it works

  • Grab the package go get github.com/adigunhammedolalekan/go-currency

  • Use it


    formattedStringNaira := currency.Format(currency.NGR, 2560) // outputs: ₦2,560

    formattedStringPounds := currency.Format(currency.EUR, 300) // outputs: ÂŁ300

    formattedStringGhanaCedis := currency.Format(currency.GHS, 2340.90) // outputs: ¢2,340.9

FAQs

Package last updated on 14 Feb 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts