embedded

package
v0.0.0-...-a02776c Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2026 License: MIT Imports: 5 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 embedded preserves the optional legacy/custom-build path for a Python engine payload compiled into the Go binary. Official standalone builds intentionally embed only engine/.gitkeep: Makefile's embed-engine target resets the directory instead of copying python/. Docker images ship the Python source tree separately and point FENDIX_ENGINE at it.

When a custom binary does contain a payload, ExtractEngine writes it to ~/.fendix/engine/ on first use.

Index

Constants

This section is empty.

Variables

View Source
var EngineFS embed.FS

EngineFS contains an optional Python engine payload. Official builds contain only the placeholder required by go:embed.

Functions

func EngineDir

func EngineDir() (string, error)

EngineDir returns the default extraction path: ~/.fendix/engine/

func ExtractEngine

func ExtractEngine(destDir string) (int, error)

ExtractEngine writes all embedded Python engine files to destDir. It creates destDir if it does not exist. Existing files are overwritten. Returns the number of files written.

func HasEngine

func HasEngine() bool

HasEngine reports whether the embedded filesystem contains real engine files (more than just the .gitkeep placeholder).

Types

This section is empty.

Jump to

Keyboard shortcuts

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