_i118Utils

package
v0.0.0-...-add256a Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var I118Prt *message.Printer

Functions

func Check

func Check(e error)

func Init

func Init(lang string, app string)

func InitResFromAsset

func InitResFromAsset(bytes []byte)

func Sprintf

func Sprintf(key message.Reference, a ...interface{}) string

Types

type I18n

type I18n struct {
	Language string    `json:"language"`
	Messages []Message `json:"messages"`
}

type Message

type Message struct {
	Id          string `json:"id"`
	Message     string `json:"message,omitempty"`
	Translation string `json:"translation,omitempty"`
}

Jump to

Keyboard shortcuts

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