langtag

package
v0.1.85 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2026 License: Apache-2.0 Imports: 3 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package langtag tells a well-formed language tag of BCP 47, as api takes one from app: for the profile's language and for the language of the tutor's words, which goes to a model by its name or as the tag itself.

Index

Constants

View Source
const Max = 64

Max is the longest tag taken: as long as the avatar's code.

Variables

This section is empty.

Functions

func WellFormed

func WellFormed(tag string) bool

WellFormed says whether tag is a well-formed tag of BCP 47, which api keeps with no list of its own: subtags of letters and digits joined by hyphens, as RFC 5646 writes them, of no more than Max, that the library parses. A subtag it does not know is still well-formed. The library alone would take an underscore for a hyphen, and a tag of any length.

Types

This section is empty.

Jump to

Keyboard shortcuts

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