소스 검색

Notes on where I got the utf8 width info.

Steve Thielemann 2 년 전
부모
커밋
316b83666d
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      door/utilities.go

+ 1 - 0
door/utilities.go

@@ -7,6 +7,7 @@ import (
 	"golang.org/x/text/width"
 )
 
+// https://siongui.github.io/2016/03/23/go-utf8-string-width/
 func UnicodeWidth(r rune) int {
 	p := width.LookupRune(r)
 	if p.Kind() == width.EastAsianWide {