Handle Go Errors by Using a Postfix Completion

Keep writing code as you would and use the postfix completion to generate the boilerplate.

Press . (dot) after the function/method call and continue to type the varCheckError, or simply vce, postfix completion.

It will surround your code with the appropriate boilerplate to create any missing variables that are returned and handle the error checking part for you.


Related Resources

Code vision
Code vision
Focus on your code while getting additional information about it.
Better Time Format in Completion
Better Time Format in Completion
Use the commonly known date/time formatting strings while writing time formatting in Go.
Evaluate Expression During Debugging
Evaluate Expression During Debugging
Select your code and execute it, in the right context.