コード例 #1
0
ファイル: table.go プロジェクト: pzduniak/termtables
// EnableUTF8PerLocale will use current locale character map information to
// determine if UTF-8 is expected and, if so, is equivalent to EnableUTF8.
func EnableUTF8PerLocale() {
	charmap := locale.GetCharmap()
	if strings.EqualFold(charmap, "UTF-8") {
		EnableUTF8()
	}
}
コード例 #2
0
ファイル: wrapper.go プロジェクト: pzduniak/termtables
func main() {
	fmt.Println(locale.GetCharmap())
}