Documentation
¶
Overview ¶
Package nativeload extracts and loads embedded FerrumGUI engine shared libraries.
Extraction writes into a versioned user cache directory (never the Go module cache). Cache paths include the artifact SHA-256 so distinct binaries never collide. Libraries are opened by absolute path to reduce DLL hijacking risk.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CurrentKey ¶
CurrentKey returns the registry lookup key for this process platform. SHA is resolved from the registered artifact for this GOOS/GOARCH/version/abi.
func OpenLibrary ¶
OpenLibrary loads a shared library from an absolute path using dlopen. RTLD_NOW|RTLD_LOCAL avoids lazy undefined-symbol surprises and does not export symbols into the global namespace.
Types ¶
type Manifest ¶
type Manifest struct {
Name string `json:"name"`
File string `json:"file"`
EngineVersion string `json:"engine_version"`
ABIVersion uint32 `json:"abi_version"`
GOOS string `json:"goos"`
GOARCH string `json:"goarch"`
TargetTriple string `json:"target_triple"`
SHA256 string `json:"sha256"`
SizeBytes int64 `json:"size_bytes"`
BuildProfile string `json:"build_profile"`
Provenance string `json:"provenance"`
LicenseBundle string `json:"license_bundle"`
}
Manifest describes one embedded native artifact.
func EnsureLibrary ¶
EnsureLibrary extracts (if needed) and returns an absolute path to the native library.
func ParseManifestJSON ¶
ParseManifestJSON decodes a manifest document.