mattn/go-runewidth

GitHub: mattn/go-runewidth

Go 语言的终端字符宽度计算库,解决 Unicode 字符串在等宽终端中的显示宽度计算问题。

Stars: 714 | Forks: 100

# go-runewidth [![Build Status](https://static.pigsec.cn/wp-content/uploads/repos/cas/19/1923fc3a92d77b60febfaaf51cf342c7a83255c8389c14a0c19e8133a76de77d.svg)](https://github.com/mattn/go-runewidth/actions?query=workflow%3Atest) [![Codecov](https://codecov.io/gh/mattn/go-runewidth/branch/master/graph/badge.svg)](https://codecov.io/gh/mattn/go-runewidth) [![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) 提供获取字符或字符串固定宽度的函数。 ## 用法 ``` runewidth.StringWidth("つのだ☆HIRO") == 12 ``` ## 作者 Yasuhiro Matsumoto ## 许可证 基于 MIT 许可证:http://mattn.mit-license.org/2013
标签:EVTX分析, 日志审计