forked from mirror/go-ethereum
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
806 B
28 lines
806 B
10 years ago
|
go-runewidth
|
||
|
============
|
||
|
|
||
|
[](https://travis-ci.org/mattn/go-runewidth)
|
||
|
[](https://coveralls.io/r/mattn/go-runewidth?branch=HEAD)
|
||
8 years ago
|
[](http://godoc.org/github.com/mattn/go-runewidth)
|
||
|
[](https://goreportcard.com/report/github.com/mattn/go-runewidth)
|
||
10 years ago
|
|
||
|
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
|