Adding Fields to a Struct

Let your IDE add constructor arguments to your instance.

Use a Quick Fix to generate the missing field of a structure.

Put your cursor on a field that's missing, press ⌃⏎ (macOS) / Ctrl+Enter (Windows/Linux), and let the IDE generate the corresponding field in the structure definition.


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.