Documentation ¶
Overview ¶
Package acceptlanguage provides htadaptor.Middleware that injects language.Tag into request context.Context which can be recovered using htadaptor.LanguageFromContext.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewNegotiator ¶
func NewNegotiator(preferred ...language.Tag) htadaptor.Middleware
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.