【文件属性】:
文件名称:i18n:使用yaml定义本地化文件的简单i18n库
文件大小:7KB
文件格式:ZIP
更新时间:2021-02-04 00:54:41
i18n go golang localization locales
i18n for Go
一个使用yaml定义本地化文件的简单i18n库。
产品特点
层次模型(基于Yaml)
通过分组进行有效访问
缓存创建的实例
缓存上次使用的实例
用法
请参考example包
user :
password :
error :
too-short : "密码太短: %s "
too-simple : 密码不符合规则
package main
import (
"github.com/eightpigs/i18n"
"fmt"
)
func main () {
// Create instances based on de
【文件预览】:
i18n-master
----.gitignore(3KB)
----README.md(2KB)
----LICENSE(1KB)
----i18n_test.go(857B)
----go.mod(75B)
----i18n.go(3KB)
----example()
--------main.go(732B)
--------locales()
----go.sum(360B)