-
Notifications
You must be signed in to change notification settings - Fork 18.8k
Closed
Labels
DocumentationIssues describing a change to documentation.Issues describing a change to documentation.FrozenDueToAgeNeedsFixThe path to resolution is known, but the work has not been done.The path to resolution is known, but the work has not been done.release-blocker
Milestone
Description
The documentation of the new embed package says:
The variable must be of type string, []byte, or FS exactly. Named types or type aliases
derived from those types are not allowed.
but the change https://golang.org/cl/282715 removed these limitations.
Similarly, it [the //go:embed directive] can be used with both global and function-local variables,
depending on what is more convenient in context.
but the change https://golang.org/cl/282714 removed support for vars embedded inside functions.
zigo101
Metadata
Metadata
Assignees
Labels
DocumentationIssues describing a change to documentation.Issues describing a change to documentation.FrozenDueToAgeNeedsFixThe path to resolution is known, but the work has not been done.The path to resolution is known, but the work has not been done.release-blocker