lang

package
v0.0.0-...-3a816db Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	English = "en"
	Spanish = "es"
)

define all available languages

Variables

This section is empty.

Functions

func GetAvailableLanguages

func GetAvailableLanguages() []string

Types

type Label

type Label struct {
	// The text to display
	Text            map[string]string
	DefineLanguages []string
}

func (*Label) SetText

func (l *Label) SetText(lang string, text string) error

Set the text for a given language

Jump to

Keyboard shortcuts

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