Create missing struct types with all fields

Prototype your code then worry about creating the types

How to use: Place the cursor on a type that's not yet defined but used.

Then, press ⌥⏎ (macOS) / Alt+Enter (Windows/Linux) and select the Create type action.

A type will be created. It will include all the fields too.

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