util

package
v0.7.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 9, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const CommonJS = `` /* 124996-byte string literal not displayed */

Variables

This section is empty.

Functions

func ConfigPath

func ConfigPath() string

func DictsPath

func DictsPath() string

func DumpHTMLDoc added in v0.1.2

func DumpHTMLDoc(filename string)

func HistoryDB added in v0.1.4

func HistoryDB() string

func HistoryFile

func HistoryFile() string

func HistoryTable added in v0.0.7

func HistoryTable() string
func ReplaceLINK(raw string) string

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 TmpDir

func TmpDir() string

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL