Support for go:embed directive

Embed files and folders into your binaries with no external tool

Go 1.16 introduced a new feature called go:embed.

This works using a compiler directive, //go:embed, and a variable, or more, of type string, []byte, or embed.FS.

If you want to embed a directory, then you must use the embed.FS type for the variable in which you need to embed the content.

How to use: You don't need to do anything special to get the IDE to support this feature.

Open any Go 1.16, or newer, based project, and embed what you need.

Related Resources

Improve Code Readability and Navigation
Discover how to manage code visibility with code folding in Go
Create a function in another package
Type a non-existing function name and generate its implementation in a package of your choice
Empower your `Printf`-like functions with coding assistance
Provide hints and highlights for message formats in custom `Printf`-like functions