vfs-embed

command
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: May 26, 2026 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Overview

vfs-embed example: bundle a SQLite database inside an embed.FS and open it read-only via the vfs sub-package. The DB never has to be unpacked to disk at runtime — useful for CLI tools that ship with seed data.

To run this example you'd typically generate seed.db once at build time; here we stub it out with a fixture created on the fly via a temp file + os.ReadFile so the example compiles standalone.

Jump to

Keyboard shortcuts

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