Discover Packages
github.com/frostyard/frostnotes
internal
vaultgen
package
Version:
v0.7.1
Opens a new window with list of versions in this module.
Published: Nov 22, 2026
License: MIT
Opens a new window with license information.
Imports: 13
Opens a new window with list of imports.
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.
Opens a new window with list of known importers.
Documentation
Documentation
¶
Package vaultgen generates deterministic, fictional markdown vaults and link manifests.
type Link struct {
Source string `json:"source"`
Text string `json:"text"`
Start int `json:"start"`
Kind string `json:"kind"`
Target string `json:"target"`
Want string `json:"want,omitzero"`
}
Link records exact markup, its byte offset and its expected resolution.
type Manifest struct {
Seed uint64 `json:"seed"`
Notes []string `json:"notes"`
Attachments []string `json:"attachments"`
Links []Link `json:"links"`
Decoys []Link `json:"decoys"`
}
Manifest lists every file, real link and code-hidden decoy in a vault.
Generate writes a vault of o.Notes notes into dir and returns its manifest.
The destination must be missing or an empty directory.
type Options struct {
Seed uint64
Notes int
}
Options controls the size and randomness of a generated vault.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.