hajimehoshi / go-jisx0208

Converts a JIS X 0208 code to a rune

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

JIS X 0208 Converter in Go

How to use

ch, err := jisx0208.Rune(0x2422)
if err != nil {
       panic(err)
}
fmt.Printf("%c\n", ch) // あ

r, err := jisx0208.Code(ch)
if err != nil {
       panic(err)
}
fmt.Printf("%X\n", r) // 2422

About

Converts a JIS X 0208 code to a rune

License:Apache License 2.0


Languages

Language:Go 100.0%