mirror of https://github.com/go-gitea/gitea
Git with a cup of tea, painless self-hosted git service
Mirror for internal git.with.parts use
https://git.with.parts
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.
27 lines
806 B
27 lines
806 B
go-runewidth
|
|
============
|
|
|
|
[![Build Status](https://travis-ci.org/mattn/go-runewidth.png?branch=master)](https://travis-ci.org/mattn/go-runewidth)
|
|
[![Coverage Status](https://coveralls.io/repos/mattn/go-runewidth/badge.png?branch=HEAD)](https://coveralls.io/r/mattn/go-runewidth?branch=HEAD)
|
|
[![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
|
|
|