Registry / utility / mozillazg-go-pinyin

mozillazg-go-pinyin

JSON →
library0.21.0gogounverified

Converts Chinese characters (Hanzi) to their pinyin representations.

go get github.com/mozillazg/go-pinyin
INSTALL
IMPORT
SIG · MOZILLAZG-GO-PINYI
M
mozillazg-go-pinyin
utilitygov0.21.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

pinyin
github.com/mozillazg/go-pinyin

Convert Chinese text to pinyin.

package main import ( "fmt" "github.com/mozillazg/go-pinyin" ) func main() { hans := "中文" result := pinyin.LazyConvert(hans, nil) fmt.Println(result) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.21.0latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
mozillazg-go-pinyin — go get mozillazg-go-pinyin · libregistry