`make run` errors during fmt or vet stage
An example error
When you run make run
it will first run go fmt
and go vet
. If either of these commands find issues you will see an error like this:
Fixing the issue
go fmt
should be run on save in the Code editor
. If you chose to edit the files in a different way (e.g. via vim
) it would be easiest to open the file in the Code editor
tab, make a small white space change (e.g. enter an extra new line somewhere) and then save the file using ctrl+s
(or cmd+s
on a mac).
If you want to continue using another editor, make sure to run the appropriate fmt commands prior to running make run
.
Last updated