All notable changes to this project are documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
Adapter modules (gin, fiber, echo, iris, beego, fasthttp) are tagged
separately as <dir>/vX.Y.Z but are released together with the core; see
RELEASING.md.
Initial release.
Parse, ParseRaw, ParseSorted, ParseStrict and Validate for
Accept-Language headers, with quality-value (q=) handling, wildcard (*) support
and a *ParseError carrying Position, Token and Reason.Language type — decomposed Tag, Language, Script, Region, Quality,
with a String method that round-trips the tag;q=value form.Best, Match and MatchWith with the Exact, Basic, Lookup,
Fallback and PreferRegion strategies, plus Fallbacks for fallback chains
(zh-Hant-TW → zh-Hant → zh).Normalize and Canonical for canonical tag casing.Sort, stable ordering by descending quality.NewResolver with WithSupported, WithDefault, WithFallback,
WithURL, WithQuery, WithCookie and WithHeader; Resolve (header string) and
ResolveRequest (*http.Request) return a Resolution reporting which Source
the language came from.net/http helpers — FromRequest, Languages, PrimaryLanguage (allocation-free
fast path), SetContentLanguage, SetVary.gin, fiber, echo, iris, beego and fasthttp
submodules, each exposing FromRequest and Languages for that framework’s context.
Each is its own Go module, so the core package stays dependency-free.