runtimepath

package
v0.70.0 Latest Latest
Warning

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

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

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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 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