accept_language

package
v0.0.0-...-5e9c659 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAcceptLanguage

func NewAcceptLanguage() router.IMiddleware

Types

type AcceptLanguages

type AcceptLanguages []TLanguage

type TAcceptLanguage

type TAcceptLanguage struct {
}

func (*TAcceptLanguage) Handler

func (self *TAcceptLanguage) Handler(hd router.IContext)

func (*TAcceptLanguage) NearestLang

func (self *TAcceptLanguage) NearestLang(hd *router.THttpContext) string

type TLanguage

type TLanguage struct {
	Language string
	Quality  float32
}

Jump to

Keyboard shortcuts

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