{"modulePath":"github.com/pencode-labs/pencode","version":"v0.1.0-rc.15","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package configuration\n\nPackage configuration owns the editor's user resources on the workspace host.\n\n## Constants\n\n```go\nconst (\n\tMaxBytes   = 16 \u003c\u003c 20\n\tMaxFiles   = 4096\n\tMaxEntries = 16384\n)\n```\n\n## Functions\n\n```go\nfunc Directory() (string, error)\n```\n\n```go\nfunc Save(ctx context.Context, directory string, data []byte) error\n```\nSave publishes a complete settings object; a failed write preserves the old file.\n\n## Types\n\n```go\ntype Snapshot struct {\n\tFiles     map[string][]byte\n\tDirectory string\n}\n```\n\n```go\nfunc Read(ctx context.Context, directory string) (Snapshot, error)\n```\n\n```go\nfunc (s Snapshot) Open(name string) (fs.File, error)\n```\n\n```go\nfunc (s Snapshot) ReadFile(name string) ([]byte, error)\n```\n\n","path":"github.com/pencode-labs/pencode/configuration","name":"configuration","synopsis":"Package configuration owns the editor's user resources on the workspace host.","isRedistributable":true}
