Documentation ¶
Index ¶
Constants ¶
View Source
const ( COMMAND_END = '0' COMMAND_REQUEST = '1' COMMAND_VERSION = '2' COMMAND_HOST = '3' )
View Source
const (
VERSION = "0.1.0"
)
Variables ¶
This section is empty.
Functions ¶
func EucToString ¶
func StringToEuc ¶
Types ¶
type Database ¶
type Database struct {
// contains filtered or unexported fields
}
func LoadDatabase ¶
Load SKK CDB database. Return error if open failed.
The database must be encoded in EUC-JP.
type GoogleJapaneseInput ¶
type GoogleJapaneseInput struct {
// contains filtered or unexported fields
}
GoogleJapaneseInput is a local google japanese input client.
func NewGoogleJapaneseInput ¶
func NewGoogleJapaneseInput() (*GoogleJapaneseInput, error)
NewGoogleJapaneseInput creates google japanese input based translation engine.
func (*GoogleJapaneseInput) Close ¶
func (g *GoogleJapaneseInput) Close()
Close cleanups resources used by the class.
func (*GoogleJapaneseInput) Search ¶
func (g *GoogleJapaneseInput) Search(query string) (cands []string)
Search responds to translation queries.
type GoogleTrans ¶
type GoogleTrans struct {
// contains filtered or unexported fields
}
func NewGoogleTrans ¶
func NewGoogleTrans() *GoogleTrans
func (*GoogleTrans) Search ¶
func (g *GoogleTrans) Search(query string) (cands []string)
Click to show internal directories.
Click to hide internal directories.