Document and demonstrate native and layered configuration loading

This commit is contained in:
2026-09-29 18:22:45 +00:00
parent 34e18c84c1
commit cbf031aedc
21 changed files with 291 additions and 46 deletions

View File

@@ -4,7 +4,8 @@ import "io/fs"
// ResourceContext provides a passive rooted filesystem view and a
// slash-relative BaseDir for one acquired source. FS is borrowed: caller-owned
// filesystems remain under caller control, and host files are opened afresh.
// filesystems remain under caller control, while a host context opens a fresh
// contained root for each resource open rather than retaining a loading handle.
// Querying this record performs no I/O. Resource contents may change after
// loading; callers must close files they open through FS.
type ResourceContext struct {