mirror of
				https://github.com/go-gitea/gitea
				synced 2025-10-31 03:18:24 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			28 lines
		
	
	
		
			806 B
		
	
	
	
		
			Markdown
		
	
	
	
	
	
			
		
		
	
	
			28 lines
		
	
	
		
			806 B
		
	
	
	
		
			Markdown
		
	
	
	
	
	
| go-runewidth
 | |
| ============
 | |
| 
 | |
| [](https://travis-ci.org/mattn/go-runewidth)
 | |
| [](https://coveralls.io/r/mattn/go-runewidth?branch=HEAD)
 | |
| [](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
 |