You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traditional and Simplified Chinese Conversion in Go
Convert Traditional Chinese to/from Simplified Chinese in Go.
This implementation is based on python-jianfan, and is very primitive.
If you need advanced converter, visit OpenCC project, or pure Go implementation
of OpenCC [13].
Install
$ go get -u github.com/siongui/gojianfan
Usage
package main
import (
"fmt""github.com/siongui/gojianfan"
)
funcmain() {
// Traditional Chinese to Simplified Chinesefmt.Println(gojianfan.T2S("橋頭"))
// Simplified Chinese to Traditional Chinesefmt.Println(gojianfan.S2T("桥头"))
}