goi18n

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Engine

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

func New

func New(languege string, path string) (*Engine, error)

func (*Engine) Get

func (e *Engine) Get(id interface{}, templateData map[string]interface{}) (string, error)

根据(id)key获取value 支持模板数据填充,非模版数据 templateData为nil即可

Jump to

Keyboard shortcuts

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