lang

package
v0.0.0-...-8cbe005 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// DefaultLanguage defines the default language, used by default when impossible to get the preferred language.
	DefaultLanguage = language.English
)

Functions

func Language

func Language() language.Tag

Language returns the preferred language of the current user.

func Match

func Match(matcher language.Matcher) (tag language.Tag, index int)

Match returns the best language based on the matcher.

Types

This section is empty.

Jump to

Keyboard shortcuts

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