This project reimplement libchewing in golang.
See How to Write Go Code, or using command go help gopath
to setup the development environment.
If your environment does not have golang, or the version of golang is too old, you can install it by gvm.
The following command can install dependencies of this project:
go get
The following command installs dependencies for unit test:
go list -f '{{range .TestImports}}{{.}} {{end}}' github.com/czchen/libgochewing | xargs go get
The following cmomand runs unit test of this project:
go test
The following command runs benchmark of this project:
go test -bench .
The following commands create summary coverage report for unit test:
go get github.com/axw/gocov/gocov
bin/gocov test github.com/czchen/libgochewing | bin/gocov report
The coverage report can also be generated as HTML with the following commands:
go get github.com/axw/gocov/gocov
go get github.com/matm/gocov-html
bin/gocov test github.com/czchen/libgochewing | bin/gocov-html > coverage.html
This project is licensed under LGPL-2.