runtimepath

package
v0.69.17 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

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 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 ModelsDir added in v0.40.7

func ModelsDir() string

func SecretsDir

func SecretsDir() string

Types

This section is empty.

Jump to

Keyboard shortcuts

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