~nskaggs/+junk/xenial-test

« back to all changes in this revision

Viewing changes to src/github.com/mattn/go-runewidth/README.mkd

  • Committer: Nicholas Skaggs
  • Date: 2016-10-24 20:56:05 UTC
  • Revision ID: nicholas.skaggs@canonical.com-20161024205605-z8lta0uvuhtxwzwl
Initi with beta15

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
go-runewidth
 
2
============
 
3
 
 
4
[![Build Status](https://travis-ci.org/mattn/go-runewidth.png?branch=master)](https://travis-ci.org/mattn/go-runewidth)
 
5
[![Coverage Status](https://coveralls.io/repos/mattn/go-runewidth/badge.png?branch=HEAD)](https://coveralls.io/r/mattn/go-runewidth?branch=HEAD)
 
6
 
 
7
Provides functions to get fixed width of the character or string.
 
8
 
 
9
Usage
 
10
-----
 
11
 
 
12
```go
 
13
runewidth.StringWidth("つのだ☆HIRO") == 12
 
14
```
 
15
 
 
16
 
 
17
Author
 
18
------
 
19
 
 
20
Yasuhiro Matsumoto
 
21
 
 
22
License
 
23
-------
 
24
 
 
25
under the MIT License: http://mattn.mit-license.org/2013