mirror of
https://github.com/foomo/gostandards.git
synced 2026-04-15 02:04:28 +00:00
main
Some checks failed
Test Branch / test (push) Has been cancelled
Go Standards
Collection of standards as types
Standards
- ISO 3166-1 - Country codes (Alpha-2 & Alpha-3)
- ISO 4217 - Currency codes
- HTTP headers, content encodings & authorization prefixes
Usage
import (
"github.com/foomo/gostandards/iso3166"
"github.com/foomo/gostandards/iso4217"
gohttp "github.com/foomo/gostandards/http"
)
// ISO 3166-1 country codes
country := iso3166.Alpha2US // "US"
alpha3 := iso3166.Alpha3USA // "USA"
// ISO 4217 currency codes
currency := iso4217.CodeUSD // "USD"
// HTTP constants
header := gohttp.HeaderContentType // "Content-Type"
How to Contribute
Contributions are welcome! Please read the contributing guide.
License
Distributed under MIT License, please read the license file for more details.
Languages
Go
95.1%
Makefile
4.9%
