Skip to content

embed: outdated sentences in documentation #43978

@gazerro

Description

@gazerro

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    DocumentationIssues describing a change to documentation.FrozenDueToAgeNeedsFixThe path to resolution is known, but the work has not been done.release-blocker

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions