https://github.com/mattn/go-runewidth
wcwidth for golang
https://github.com/mattn/go-runewidth
go golang wcwidth windows
Last synced: 10 months ago
JSON representation
wcwidth for golang
- Host: GitHub
- URL: https://github.com/mattn/go-runewidth
- Owner: mattn
- License: mit
- Created: 2013-06-21T04:56:50.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2024-07-22T13:03:23.000Z (over 1 year ago)
- Last Synced: 2025-05-14T02:08:53.075Z (10 months ago)
- Topics: go, golang, wcwidth, windows
- Language: Go
- Homepage:
- Size: 149 KB
- Stars: 634
- Watchers: 12
- Forks: 96
- Open Issues: 16
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
- go-awesome - go-runewidth - 字符长度计算 (开源类库 / 文本处理)
- awesome-go - go-runewidth - Functions to get fixed width of the character or string. (Text Processing / Advanced Console UIs)
- go-awesome - go-runewidth - character length calculation (Open source library / Word Processing)
- awesome-go - go-runewidth - ★ 157 (Text Processing)
- awesome-go - go-runewidth - Functions to get fixed width of the character or string. (Text Processing / Utility/Miscellaneous)
- awesome-go-cn - go-runewidth
- awesome-go - go-runewidth - Functions to get fixed width of the character or string. (<span id="文字处理-text-processing">文字处理 Text Processing</span> / <span id="高级控制台用户界面-advanced-console-uis">高级控制台用户界面 Advanced Console UIs</span>)
- awesome-go-extra - go-runewidth - 06-21T04:56:50Z|2022-07-28T09:42:15Z| (Bot Building / Utility/Miscellaneous)
- awesome-go-info - go-runewidth
- awesome-go - go-runewidth - Functions to get fixed width of the character or string. (Text Processing / HTTP Clients)
- awesome-go - mattn/go-runewidth
- awesome-Char - go-runewidth - Functions to get fixed width of the character or string. (Text Processing / HTTP Clients)
- awesome-go-with-stars - go-runewidth - 02-17 | (Template Engines / Utility/Miscellaneous)
- fucking-awesome-go - go-runewidth - Functions to get fixed width of the character or string. (Text Processing / Utility/Miscellaneous)
- go-awesome-with-star-updatetime - go-runewidth - Functions to get fixed width of the character or string. (Text Processing / HTTP Clients)
- fucking-awesome-go - :octocat: go-runewidth - Functions to get fixed width of the character or string. :star: 54 :fork_and_knife: 9 (Text Processing / Advanced Console UIs)
- awesome-go - go-runewidth - Functions to get fixed width of the character or string. (Text Processing / Utility/Miscellaneous)
- awesome-go - go-runewidth - Functions to get fixed width of the character or string. (Text Processing / Utility/Miscellaneous)
- awesome-go - go-runewidth - Functions to get fixed width of the character or string. (Text Processing / Utility/Miscellaneous)
- awesome-go-cn - go-runewidth
- awesome-go-processed - go-runewidth - Functions to get fixed width of the character or string.| (Text Processing / Advanced Console UIs)
- awesome-go - go-runewidth - | - | - | (Text Processing / HTTP Clients)
- awesome-go-cn - go-runewidth - runewidth) (文本处理 / 实用程序/Miscellaneous)
- awesome-go-plus - go-runewidth - Functions to get fixed width of the character or string.  (Text Processing / Utility/Miscellaneous)
- awesome-go - go-runewidth - Functions to get fixed width of the character or string. (Text Processing / Utility/Miscellaneous)
- awesome-go-zh - go-runewidth
- awesome-go-cn - go-runewidth - runewidth) (文本处理 / 实用程序/Miscellaneous)
- awesome-go - go-runewidth - Functions to get fixed width of the character or string. - :arrow_down:487 - :star:57 (Text Processing / HTTP Clients)
- awesome-go - go-runewidth - Functions to get fixed width of the character or string. (Text Processing / Utility/Miscellaneous)
README
go-runewidth
============
[](https://github.com/mattn/go-runewidth/actions?query=workflow%3Atest)
[](https://codecov.io/gh/mattn/go-runewidth)
[](http://godoc.org/github.com/mattn/go-runewidth)
[](https://goreportcard.com/report/github.com/mattn/go-runewidth)
Provides functions to get fixed width of the character or string.
Usage
-----
```go
runewidth.StringWidth("つのだ☆HIRO") == 12
```
Author
------
Yasuhiro Matsumoto
License
-------
under the MIT License: http://mattn.mit-license.org/2013