Documentation
¶
Index ¶
- Constants
- func ConfigPath() string
- func DictsPath() string
- func DumpHTMLDoc(filename string)
- func HistoryDB() string
- func HistoryFile() string
- func HistoryTable() string
- func ReplaceLINK(raw string) string
- func SetPaths(configPath, tmpPath string)
- func TmpDir() string
- func VocabDB() string
- func WordBankDB() string
Constants ¶
View Source
const CommonJS = `` /* 124996-byte string literal not displayed */
Variables ¶
This section is empty.
Functions ¶
func ConfigPath ¶
func ConfigPath() string
func DumpHTMLDoc ¶ added in v0.1.2
func DumpHTMLDoc(filename string)
func HistoryFile ¶
func HistoryFile() string
func HistoryTable ¶ added in v0.0.7
func HistoryTable() string
func ReplaceLINK ¶ added in v0.3.2
func SetPaths ¶ added in v0.6.0
func SetPaths(configPath, tmpPath string)
SetPaths overrides the default config and cache directories. Call this before any other util functions, e.g. from a mobile entry point. Safe to call from multiple goroutines.
func VocabDB ¶ added in v0.6.0
func VocabDB() string
VocabDB returns the path to vocab.db. On mobile (where SetPaths is called) this lands in cacheDir (evictable) since vocab.db is a derived cache rebuilt automatically from the MDX source files. On desktop it lives alongside the other config files under ~/.config/ondict.
func WordBankDB ¶ added in v0.6.0
func WordBankDB() string
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.