Skip to content

Commit

Permalink
update README
Browse files Browse the repository at this point in the history
  • Loading branch information
caiguanhao committed May 17, 2020
1 parent 65485e2 commit ce9abbf
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ go get -v -u github.com/caiguanhao/opencc/opencc

## Import Package

### All

```go
package main

Expand All @@ -28,3 +30,22 @@ func main() {
// 滑鼠裡面的矽二極體壞了,導致游標解析度降低。
}
```

### Specific

```go
package main

import (
"fmt"

"github.com/caiguanhao/opencc/configs/tw2sp"
)

func main() {
fmt.Println(tw2sp.Description)
// Traditional Chinese (Taiwan standard) to Simplified Chinese (with phrases)
fmt.Println(tw2sp.Dicts.Convert(`滑鼠裡面的矽二極體壞了,導致游標解析度降低。`))
// 鼠标里面的硅二极管坏了,导致光标分辨率降低。
}
```

0 comments on commit ce9abbf

Please sign in to comment.