embedded

package
v0.0.13 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Extract

func Extract() error

Extract writes the embedded native library to the default temporary directory and sets the environment so the glaze package can find it at runtime. It is safe to call multiple times; only the first call has effect.

For production deployments, prefer ExtractTo with a directory that is not world-writable (e.g. alongside the application binary).

func ExtractTo added in v0.0.9

func ExtractTo(dir string) error

ExtractTo writes the embedded native library to dir and sets the environment so the glaze package can find it at runtime. If dir is empty the default temporary directory is used ($TMPDIR/webview-<version>).

The extracted file is verified against a BLAKE2b-256 hash computed from the embedded bytes. If a file already exists at the destination and its hash does not match, an error is returned without modifying the file.

ExtractTo is safe to call multiple times; only the first call has effect.

Types

This section is empty.

Jump to

Keyboard shortcuts

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