GoLand
 
Get GoLand
Because GoLand 2025.1 is still in development, this documentation may not be entirely accurate and is subject to change.

Templates with multiple files

Last modified: 22 November 2024

Some programming patterns and frameworks require a set of related files, usually with a very specific structure. For example, you can create separate Go files: one for your application (main.go) and another one for tests (main_test.go).

In GoLand, you can create sets of related files by adding child templates to a file template. When you create a file from such a template, it will also create files from child templates.