Documentation
¶
Overview ¶
Package defaultconfig is the copy of the repository's config/ built into the binary, used when it runs outside any checkout (a standalone binary, double-clicked from Downloads). It is read-only: the web UI refuses to save into it and points at --config-dir instead.
The copy is generated, never edited: change config/, then run `make embed-config`. TestEmbeddedConfigMatchesTheRepository fails while the two differ.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Diff ¶
Diff lists how src differs from the embedded copy: files missing from either side, and files whose bytes differ. Empty means in step.
func Dir ¶
Dir writes the embedded configs to a per-user cache directory and returns it, so every reader that takes a directory works unchanged. The directory is named for a hash of the contents and its files are mode 0444; an existing copy is checked byte for byte and rewritten where it differs. base is the cache root; "" means $XDG_CACHE_HOME, else ~/.cache.
Types ¶
This section is empty.