Documentation
¶
Overview ¶
Package runtimepath resolves exe-relative paths so SpeechKit's portable-mode bundle finds its bundled assets, models, and per-user data dirs without depending on the OS-level installer having registered a fixed location.
Audit 2026-05-24 maintainability sweep.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BundleDir ¶ added in v0.69.21
func BundleDir() string
BundleDir is "" outside a macOS application bundle.
func BundleHelpersDir ¶ added in v0.69.21
func BundleHelpersDir() string
BundleHelpersDir is "" outside a macOS application bundle.
func BundleResourcesDir ¶ added in v0.69.21
func BundleResourcesDir() string
BundleResourcesDir is "" outside a macOS application bundle.
func ConfigFilePath ¶ added in v0.21.1
func ConfigFilePath() string
func DataDir ¶
func DataDir() string
DataDir is the roaming per-user directory for config, feedback and secrets. Portable bundles keep it next to the executable; installed builds use the platform's per-user location (paths_<os>.go).
func ExecutableDir ¶
func ExecutableDir() string
func IsPortable ¶
func IsPortable() bool
IsPortable reports whether the binary runs from a portable bundle: a config or whisper runtime sits next to the executable and nothing marks the location as a managed install (uninstaller, Program Files, a macOS app bundle, a development checkout).
func LocalDataDir ¶
func LocalDataDir() string
LocalDataDir is the machine-local per-user directory for large, non-roaming data such as downloaded models and runtimes.
func SecretsDir ¶
func SecretsDir() string
Types ¶
This section is empty.