Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mozillazg/stpinyin
Convert pinyin like this: you1 -> yōu
https://github.com/mozillazg/stpinyin
go golang pinyin
Last synced: 22 days ago
JSON representation
Convert pinyin like this: you1 -> yōu
- Host: GitHub
- URL: https://github.com/mozillazg/stpinyin
- Owner: mozillazg
- License: mit
- Created: 2016-08-13T01:18:07.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-03-13T14:56:31.000Z (almost 8 years ago)
- Last Synced: 2024-10-03T15:40:53.707Z (3 months ago)
- Topics: go, golang, pinyin
- Language: Go
- Homepage: https://github.com/mozillazg/stpinyin/releases
- Size: 8.79 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
stpinyin
==============[![Build Status](https://travis-ci.org/mozillazg/stpinyin.svg?branch=master)](https://travis-ci.org/mozillazg/stpinyin)
[![Coverage Status](https://coveralls.io/repos/mozillazg/stpinyin/badge.svg?branch=master)](https://coveralls.io/r/mozillazg/stpinyin?branch=master)
[![Go Report Card](https://goreportcard.com/badge/github.com/mozillazg/stpinyin)](https://goreportcard.com/report/github.com/mozillazg/stpinyin)
[![GoDoc](https://godoc.org/github.com/mozillazg/stpinyin?status.svg)](https://godoc.org/github.com/mozillazg/stpinyin)Convert pinyin like this: `you1 -> yōu`
Installation
------------```
go get -u github.com/mozillazg/stpinyin
```Install CLI tool:
```
$ go get -u github.com/mozillazg/stpinyin/stpinyinor download from https://github.com/mozillazg/stpinyin/releases
$ stpinyin you1 hang2
yōu háng
```Documentation
--------------API documentation can be found here:
https://godoc.org/github.com/mozillazg/stpinyinUsage
------```go
package mainimport (
"fmt""github.com/mozillazg/stpinyin"
)func main() {
s := "you1"
fmt.Println(stpinyin.Convert(s))
// Output: yōu
}
```License
---------Under the MIT License.