Custom Structure Tags

Add custom tags to any fields from structures.

GoLand has a few Live Templates builtin for struct tags, such as json or xml.

You can add your own structure field tag by going to Settings/Preferences | Editor | Live Templates and then select Go Struct Tags.

Then you can either customize an existing template, duplicate it, or create a new one.


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.