gettext-goGo 语言实现的 gettext 支持库
Gettext 用于系统的国际化(I18N)和本地化(L10N),可以在编译程序的时候使用本国语言支持(Native Language Support(NLS)),其可以使程序的输出使用用户设置.
而 gettext-go 是完全采用 Go 语言实现的 gettext 支持库.
示例代码:
// Copyright 2013 <chaishushan{AT}gmail.com>. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package main import ( "fmt" "code.google.com/p/gettext-go/gettext" ) func main() { gettext.SetLocale("zh_CN") gettext.BindTextdomain("hello", "local") gettext.Textdomain("hello") fmt.Println(gettext.Gettext("Hello, world!")) // Output: 你好, 世界! }
评论
gettext国际化语言支持库
Gettext用于系统的国际化(I18N)和本地化(L10N),可以在编译程序的时候使用本国语言支持(NativeLanguageSupport(NLS)),其可以使程序的输出使用用户设置的语言而不是
gettext国际化语言支持库
0
ToyormGo 语言实现的 ORM 库
使用go实现的orm库,用go的结构体与数据库表关联,来简化各种数据库操作。特性:语句与查询:支持Insert/Replace/Find/Delete/Update等操作条件:支持Limit/Offs
ToyormGo 语言实现的 ORM 库
0
TBOXC 语言实现的跨平台开发库
TBOX是一个用C语言实现的跨平台开发库。针对各个平台,封装了统一的接口,简化了各类开发过程中常用操作,使你在开发过程中,更加关注实际应用的开发,而不是把时间浪费在琐碎的接口兼容性上面,并且充分利用了
TBOXC 语言实现的跨平台开发库
0
Pion WebRTCgo 语言实现的 webrtc 框架库
Pion WebRTC 是纯go语言实现的webrtc框架库。可以用于开发webrtc服务器和web
Pion WebRTCgo 语言实现的 webrtc 框架库
0