fengshao0907 / weed-fs

Automatically exported from code.google.com/p/weed-fs
0 stars 0 forks source link

Source is not formatted in accordance with go fmt #43

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Enter project directory
2. Run `go fmt`

What is the expected output? What do you see instead?
Expect no formatting errors. See that go fmt has found/fixed several errors.

What version of the product are you using? On what operating system?
master branch

Please provide any additional information below.

I've attached a patch with the go fmt fixes.

Original issue reported on code.google.com by ryan.sc....@gmail.com on 1 Sep 2013 at 3:32

Attachments:

GoogleCodeExporter commented 9 years ago
Thanks. I applied the changes.

Also, I would like to know how to "go fmt" for all the files. Right now I use 
eclipse, but need to "ctrl+S" in order to invoke "go fmt" for one particular 
file. I would like some tool to automatically "go fmt" for all the files before 
checking in.

Original comment by chris...@gmail.com on 2 Sep 2013 at 7:00

GoogleCodeExporter commented 9 years ago
If you enter the directory where your source files are, you can run "go fmt" 
and it will format the files and print a list of the ones that were changed. 
You have to do this in each directory since it doesn't run recursively. 

Original comment by ryan.sc....@gmail.com on 2 Sep 2013 at 1:16