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