mattn/go-runewidth
GitHub: mattn/go-runewidth
Go 语言的终端字符宽度计算库,解决 Unicode 字符串在等宽终端中的显示宽度计算问题。
Stars: 714 | Forks: 100
# go-runewidth
[](https://github.com/mattn/go-runewidth/actions?query=workflow%3Atest)
[](https://codecov.io/gh/mattn/go-runewidth)
[](http://godoc.org/github.com/mattn/go-runewidth)
[](https://goreportcard.com/report/github.com/mattn/go-runewidth)
提供获取字符或字符串固定宽度的函数。
## 用法
```
runewidth.StringWidth("つのだ☆HIRO") == 12
```
## 作者
Yasuhiro Matsumoto
## 许可证
基于 MIT 许可证:http://mattn.mit-license.org/2013
标签:EVTX分析, 日志审计