tangs b030ce89ca openbilibili %!s(int64=6) %!d(string=hai) anos
..
BUILD.bazel b030ce89ca openbilibili %!s(int64=6) %!d(string=hai) anos
LICENSE b030ce89ca openbilibili %!s(int64=6) %!d(string=hai) anos
README.mkd b030ce89ca openbilibili %!s(int64=6) %!d(string=hai) anos
runewidth.go b030ce89ca openbilibili %!s(int64=6) %!d(string=hai) anos
runewidth_js.go b030ce89ca openbilibili %!s(int64=6) %!d(string=hai) anos
runewidth_posix.go b030ce89ca openbilibili %!s(int64=6) %!d(string=hai) anos
runewidth_windows.go b030ce89ca openbilibili %!s(int64=6) %!d(string=hai) anos

README.mkd

go-runewidth

Build Status Coverage Status 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