Documentation ¶
Index ¶
Constants ¶
View Source
const ( DefaultCongkitVersion = CongkitV5 DefaultDatabasePath = "./congkit.db" )
Engine defaults
View Source
const ( GetCharFromCongkit = `` /* 144-byte string literal not displayed */ GetCharFromQuick = `` /* 147-byte string literal not displayed */ GetCharWithPrediction = `` /* 147-byte string literal not displayed */ GetSimplifiedCharFromCongkit = `` /* 144-byte string literal not displayed */ GetSimplifiedCharFromQuick = `` /* 147-byte string literal not displayed */ GetSimplifiedCharWithPrediction = `` /* 147-byte string literal not displayed */ )
View Source
const (
DatabaseDSNPattern = "file:%s?mode=ro"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CongkitVersion ¶
type CongkitVersion int
const ( CongkitV3 CongkitVersion = 3 CongkitV5 CongkitVersion = 5 )
type Engine ¶
type Engine struct { CongkitVersion OutputSimplified bool // Output Simplified Chinese word Easy bool // "Easy" input method mode Prediction bool // Predict word while typing // contains filtered or unexported fields }
type Option ¶
type Option func(*Engine)
func WithCongkitV3 ¶
func WithCongkitV3() Option
func WithCongkitV5 ¶
func WithCongkitV5() Option
func WithDatabase ¶
func WithPrediction ¶
func WithPrediction() Option
func WithSimplified ¶
func WithSimplified() Option
Click to show internal directories.
Click to hide internal directories.