3

Online Conversion of Traditional and Simplified Chinese in Go/GopherJS

 2 years ago
source link: http://siongui.github.io/2017/02/20/online-conversion-of-traditional-and-simplified-chinese/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Online Conversion of Traditional and Simplified Chinese in Go/GopherJS

February 20, 2017

Go front-end programming - online service for conversion of Traditional and Simplified Chinese via GopherJS/godom/gojianfan.

Demo

This shows you the great power of GopherJS compiler. As long as the Go packages are written in Go and not involved with OS operation, you can compile almost any Go code to JavaScript and run on browser.

This online service use the following packages to provide Chinese conversion:

HTML:

Go: (compiled to JavaScript by GopherJS)

The demo consists of only a few lines of code. View gopherjs directory in gojianfan repository for more details.


Tested on: Ubuntu Linux 16.10, Go 1.8, GopherJS 1.8-1.


References:

[2]GitHub - siongui/godom: Make DOM manipultation in Go as similar to JavaScript as possible. (via GopherJS)

[3]GitHub - siongui/gojianfan: Traditional and Simplified Chinese Conversion in Go


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK