Permalink
Browse files

Running go fmt

  • Loading branch information...
1 parent 790ec6e commit d968516732025b1bc3c34e2d3a01d1e099bbd926 @paulbellamy committed Mar 26, 2012
Showing with 10 additions and 10 deletions.
  1. +1 −1 logger_test.go
  2. +1 −1 mango.go
  3. +3 −3 mango_test.go
  4. +4 −4 static.go
  5. +1 −1 static_test.go
View
@@ -2,8 +2,8 @@ package mango
import (
"bytes"
- "net/http"
"log"
+ "net/http"
"testing"
)
View
@@ -3,8 +3,8 @@ package mango
import (
"fmt"
- "net/http"
"log"
+ "net/http"
"net/textproto"
"os"
)
View
@@ -1,11 +1,11 @@
package mango
import (
- "net/http/httptest"
- "io/ioutil"
- "testing"
"fmt"
+ "io/ioutil"
"net/http"
+ "net/http/httptest"
+ "testing"
)
func helloWorld(env Env) (Status, Headers, Body) {
View
@@ -1,22 +1,22 @@
package mango
import (
- "path"
"io/ioutil"
"os"
+ "path"
)
func fileIsRegular(fi os.FileInfo) bool {
- return fi.Mode() & (os.ModeDir | os.ModeSymlink | os.ModeNamedPipe | os.ModeSocket | os.ModeDevice) == 0
+ return fi.Mode()&(os.ModeDir|os.ModeSymlink|os.ModeNamedPipe|os.ModeSocket|os.ModeDevice) == 0
}
func fileExists(filename string) bool {
info, err := os.Stat(filename)
if err != nil {
return false
} else if !fileIsRegular(info) {
- return false
- }
+ return false
+ }
return true
}
View
@@ -2,8 +2,8 @@ package mango
import (
"bytes"
- "net/http"
"io/ioutil"
+ "net/http"
"testing"
)

1 comment on commit d968516

AlekSi commented on d968516 Mar 31, 2012

May you add your gofmt parameters to Makefile? Also, looks like examples/ wasn't formatted.

Please sign in to comment.