SkillAgentSearch skills...

Currency

A library providing ISO4217 currency codes and minor units

Install / Use

/learn @ladydascalie/Currency
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

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

View on GitHub
GitHub Stars12
CategoryDevelopment
Updated2mo ago
Forks1

Languages

Go

Security Score

95/100

Audited on Jan 1, 2026

No findings