Match the flags used in gofmt with their description
Best practices for writing Go code
Flags in <code>gofmt</code>
Report a typo
Match the items from left and right columns
gofmt -l GoProjectsgofmt -d GoProjectsgofmt -w GoProjectsIt 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.
___
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.