translations

package
v0.0.148 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package translations provides a type for translated values.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GetOption added in v0.0.60

type GetOption func(*getConfig)

func DefaultKey added in v0.0.60

func DefaultKey(key TranslationKey) GetOption

func GetFirstByDefault added in v0.0.60

func GetFirstByDefault() GetOption

type TranslationKey

type TranslationKey string

type TranslationValue

type TranslationValue string

type Translations

type Translations map[TranslationKey]TranslationValue

func (Translations) Equal added in v0.0.95

func (t Translations) Equal(other Translations) bool

func (Translations) Get

func (Translations) IsZero

func (t Translations) IsZero() bool

func (*Translations) Scan

func (t *Translations) Scan(v any) error

func (Translations) Validate

func (t Translations) Validate() error

func (Translations) Value

func (t Translations) Value() (driver.Value, error)

Jump to

Keyboard shortcuts

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