TongYang b8d433d7df v1 %!s(int64=3) %!d(string=hai) anos
..
.travis.yml b8d433d7df v1 %!s(int64=3) %!d(string=hai) anos
LICENSE b8d433d7df v1 %!s(int64=3) %!d(string=hai) anos
README.md b8d433d7df v1 %!s(int64=3) %!d(string=hai) anos
go.test.sh b8d433d7df v1 %!s(int64=3) %!d(string=hai) anos
runewidth.go b8d433d7df v1 %!s(int64=3) %!d(string=hai) anos
runewidth_appengine.go b8d433d7df v1 %!s(int64=3) %!d(string=hai) anos
runewidth_js.go b8d433d7df v1 %!s(int64=3) %!d(string=hai) anos
runewidth_posix.go b8d433d7df v1 %!s(int64=3) %!d(string=hai) anos
runewidth_table.go b8d433d7df v1 %!s(int64=3) %!d(string=hai) anos
runewidth_windows.go b8d433d7df v1 %!s(int64=3) %!d(string=hai) anos

README.md

go-runewidth

Build Status Codecov GoDoc Go Report Card

Provides functions to get fixed width of the character or string.

Usage

runewidth.StringWidth("つのだ☆HIRO") == 12

Author

Yasuhiro Matsumoto

License

under the MIT License: http://mattn.mit-license.org/2013