Skip to content

foomo/gostandards

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

About

Collection of typed standards types

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Contributors 2

  •  
  •