2020-04-03 13:29:12 -06:00
|
|
|
go-runewidth
|
|
|
|
============
|
|
|
|
|
|
|
|
[![Build Status](https://travis-ci.org/mattn/go-runewidth.png?branch=master)](https://travis-ci.org/mattn/go-runewidth)
|
2020-09-22 11:02:16 -06:00
|
|
|
[![Codecov](https://codecov.io/gh/mattn/go-runewidth/branch/master/graph/badge.svg)](https://codecov.io/gh/mattn/go-runewidth)
|
2020-04-03 13:29:12 -06:00
|
|
|
[![GoDoc](https://godoc.org/github.com/mattn/go-runewidth?status.svg)](http://godoc.org/github.com/mattn/go-runewidth)
|
|
|
|
[![Go Report Card](https://goreportcard.com/badge/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
|