resource

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2024 License: Unlicense Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bundle

type Bundle struct {
	// contains filtered or unexported fields
}

func NewBundle

func NewBundle(resourcesFolder string, defaultLocale language.Tag) *Bundle

func (*Bundle) Get

func (b *Bundle) Get(id string, replacers ...any) string

func (*Bundle) GetWithLocale

func (b *Bundle) GetWithLocale(locale language.Tag, id string, replacers ...any) string

func (*Bundle) Load

func (b *Bundle) Load()

func (*Bundle) SetLocale

func (b *Bundle) SetLocale(language language.Tag)

Jump to

Keyboard shortcuts

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