A lightweight Go library for ISO-3166 country code lookup, validation, and serialization.
go-countries is a Go library designed to simplify working with ISO-3166 country codes in applications. It provides a set of types and functions for easy lookup, validation, and database integration, eliminating the need to manually manage country code data.
driver.Valuer, ozzo validation.Validate, Stringer, and json.Unmarshaler for seamless integration.country.Canada, country.Alpha2CA, and country.NameCanada for type-safe usage.The library prioritizes simplicity and interoperability, providing a minimal, type-safe abstraction over ISO-3166 data that fits naturally into Go application workflows.
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.