Fedora 35 support was dropped, so we can update to a newer Go. Stable RHEL 8 and 9 and Fedora 36 ships Go 1.18, so let's switch to it. "//go:build" directives are now apparently enforced by go fmt, so that's why there were added. Also, all the github actions were adjusted to use Go 1.18. Signed-off-by: Ondřej Budai <ondrej@budai.cz> |
||
|---|---|---|
| .. | ||
| .travis.yml | ||
| go.test.sh | ||
| LICENSE | ||
| README.md | ||
| runewidth.go | ||
| runewidth_appengine.go | ||
| runewidth_js.go | ||
| runewidth_posix.go | ||
| runewidth_table.go | ||
| runewidth_windows.go | ||
go-runewidth
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
