sampler

package module
v1.3.3 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2019 License: BSD-3-Clause Imports: 3 Imported by: 2

Documentation

Overview

Package sampler shows simple texts in a variety of languages.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultUserPrefs

func DefaultUserPrefs() []language.Tag

DefaultUserPrefs returns the default user language preferences. It consults the $LC_ALL, $LC_MESSAGES, and $LANG environment variables, in that order.

func Glass

func Glass(prefs ...language.Tag) string

Glass returns a localized silly phrase. If no prefs are given, Glass uses DefaultUserPrefs.

func Hello

func Hello(prefs ...language.Tag) string

Hello returns a localized greeting. If no prefs are given, Hello uses DefaultUserPrefs.

Types

This section is empty.

Jump to

Keyboard shortcuts

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