tangs b030ce89ca openbilibili 5 years ago
..
BUILD.bazel b030ce89ca openbilibili 5 years ago
LICENSE b030ce89ca openbilibili 5 years ago
README.mkd b030ce89ca openbilibili 5 years ago
runewidth.go b030ce89ca openbilibili 5 years ago
runewidth_js.go b030ce89ca openbilibili 5 years ago
runewidth_posix.go b030ce89ca openbilibili 5 years ago
runewidth_windows.go b030ce89ca openbilibili 5 years ago

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