Closed as not planned
Closed as not planned
Description
Proposal Details
Currently, go:embed
allows embedding individual files as string
s or []byte
s, but directories must go through the embed.FS
interface.
Allowing directories to be represented as map
s would improve the ergonomics of walking through embedded filesystem trees, since there would no longer be any (nonexistent) errors to handle (or ignore).
Options:
map[string]string
and/ormap[string][]byte
would represent flattened directory hierarchies (similar to how S3 buckets work)map[string]any
would represent the full tree, where keys are directory/file names without slashes, and values aremap[string]any | []byte
s
Metadata
Metadata
Assignees
Type
Projects
Status
Incoming