go-runewidth
Functions to get fixed width of the character or string
About go-runewidth
go-runewidth
Provides functions to get fixed width of the character or string.
Usage
runewidth.StringWidth("つのだ☆HIRO") == 12
NOTE: Latin letters that Unicode gives ambiguous East Asian width, such as
ü, é and ß, are measured as one cell even when EastAsianWidth is
set, as terminals draw them in CJK locales too. Other ambiguous characters
such as ±, × and ○ still take two cells there.
Author
Yasuhiro Matsumoto
License
under the MIT License: http://mattn.mit-license.org/2013
Frequently Asked Questions
What is go-runewidth?
go-runewidth is a Text Processing library for the Go programming language. Functions to get fixed width of the character or string
How do I install go-runewidth?
Install go-runewidth with the Go module system using `go get mattn/go-runewidth`. Check the repository for the current installation instructions.
What category does go-runewidth belong to?
go-runewidth is listed under Text Processing, specifically Utility/Miscellaneous.