Documentation
¶
Overview ¶
Package dictionary contains a interface and wraps all io related work. It is used by jiebago module to read/write files.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadDictionary ¶
func LoadDictionary(dl DictLoader, fileName string) error
LoadDictionary reads the given file and passes all tokens to a DictLoader.
func LoadDictionaryRemote ¶
func LoadDictionaryRemote(dl DictLoader, url string) (err error)
Types ¶
type DictLoader ¶
DictLoader is the interface that could add one token or load tokens from channel.
Click to show internal directories.
Click to hide internal directories.