Currency
A library providing ISO4217 currency codes and minor units
Install / Use
/learn @ladydascalie/CurrencyREADME
currency
This package generates structs containing all the up-to-date ISO4217 currency codes and minor units, along with a very simple validator.
Data is graciously provided by:
Usage:
package main
import (
"fmt"
"github.com/ladydascalie/currency"
)
func main() {
// Validate currency code.
if !currency.Valid("ABC") {
// Handle invalid currency code.
fmt.Println("Invalid currency code")
}
// Retrieve and print currency values.
fmt.Println(currency.USD.Code()) // Output: USD
fmt.Println(currency.USD.MinorUnit()) // Output: 2
}
Related Skills
node-connect
339.1kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
xurl
339.1kA CLI tool for making authenticated requests to the X (Twitter) API. Use this skill when you need to post tweets, reply, quote, search, read posts, manage followers, send DMs, upload media, or interact with any X API v2 endpoint.
frontend-design
83.8kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
339.1kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
