Support for go:embed Directive

Embed files and folders into your binaries without using an 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.

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
Improve Code Readability and Navigation
Discover how to manage code visibility with code folding in Go
Create a Function in Another Package
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
Empower your `Printf`-like functions with coding assistance
Provide hints and highlights for message formats in custom `Printf`-like functions.