gostandards

module
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 13, 2026 License: MIT

README

Build Status Go Report Card GoDoc

gostandards

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.

Contributors

License

Distributed under MIT License, please read the license file for more details.

Made with ♥ foomo by bestbytes

Directories

Path Synopsis
cmd
generate command
Package http provides typed constants for standard HTTP headers, content encodings, and authorization prefixes.
Package http provides typed constants for standard HTTP headers, content encodings, and authorization prefixes.
Package iso3166 provides typed constants for ISO 3166-1 country codes including both alpha-2 and alpha-3 representations.
Package iso3166 provides typed constants for ISO 3166-1 country codes including both alpha-2 and alpha-3 representations.
Package iso4217 provides typed constants for ISO 4217 currency codes.
Package iso4217 provides typed constants for ISO 4217 currency codes.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL