liuxiulin e912c42f7d first commit %!s(int64=2) %!d(string=hai) anos
..
.travis.yml e912c42f7d first commit %!s(int64=2) %!d(string=hai) anos
LICENSE e912c42f7d first commit %!s(int64=2) %!d(string=hai) anos
README.md e912c42f7d first commit %!s(int64=2) %!d(string=hai) anos
go.mod e912c42f7d first commit %!s(int64=2) %!d(string=hai) anos
go.test.sh e912c42f7d first commit %!s(int64=2) %!d(string=hai) anos
runewidth.go e912c42f7d first commit %!s(int64=2) %!d(string=hai) anos
runewidth_appengine.go e912c42f7d first commit %!s(int64=2) %!d(string=hai) anos
runewidth_js.go e912c42f7d first commit %!s(int64=2) %!d(string=hai) anos
runewidth_posix.go e912c42f7d first commit %!s(int64=2) %!d(string=hai) anos
runewidth_table.go e912c42f7d first commit %!s(int64=2) %!d(string=hai) anos
runewidth_windows.go e912c42f7d first commit %!s(int64=2) %!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