go get github.com/ChenghaoMou/go-wordninja
package main
import (
"github.com/ChenghaoMou/go-wordninja"
"fmt"
)
func main() {
// only English characters
eng := "thisisatest"
fmt.Println(wordninja.CutEnglish(eng))
// multi characters
mul := "this哈isa,test"
fmt.Println(wordninja.Cut(mul))
}