Flags in <code>gofmt</code>

Report a typo

Match the flags used in gofmt with their description

Match the items from left and right columns
gofmt -l GoProjects
gofmt -d GoProjects
gofmt -w GoProjects
It does not print the fixed and changed code in the standard output. Instead, it prints the difference between the reformated and the original code by indicating the lines with - and +signs. The plus sign indicates the line is changed. To apply it, use the following in the terminal gofmt -d package or file name
The fixed code will not be printed in the standard output. Instead, all needed fixes are applied to the source files in the GoProjects package.
The fixed code will not be printed in the standard output. Instead, all the files that need to be fixed in GoProjects will be listed in the standard output.
___

Create a free account to access the full topic