Skip to content

Commit

Permalink
go fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
buger committed Aug 31, 2016
1 parent 1674b58 commit 967c380
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion elasticsearch.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ package main

import (
"encoding/json"
"github.com/mattbaird/elastigo/lib"
"github.com/buger/gor/proto"
"github.com/mattbaird/elastigo/lib"
"log"
"regexp"
"time"
Expand Down
2 changes: 1 addition & 1 deletion gor.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,4 +132,4 @@ func profileMEM(memprofile string) {
f.Close()
})
}
}
}
8 changes: 4 additions & 4 deletions input_raw_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,10 @@ func TestRAWInputNoKeepAlive(t *testing.T) {
t.Fatal(err)
}
origin := &http.Server{
Handler: http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
w.Write([]byte("a"))
w.Write([]byte("b"))
}),
Handler: http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
w.Write([]byte("a"))
w.Write([]byte("b"))
}),
ReadTimeout: 10 * time.Second,
WriteTimeout: 10 * time.Second,
}
Expand Down
6 changes: 3 additions & 3 deletions output_null.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ type NullOutput struct {

// NullOutput constructor for NullOutput
func NewNullOutput() (o *NullOutput) {
return new(NullOutput)
return new(NullOutput)
}

func (o *NullOutput) Write(data []byte) (int, error) {
return len(data), nil
return len(data), nil
}

func (o *NullOutput) String() string {
return "Null Output"
return "Null Output"
}

0 comments on commit 967c380

Please sign in to comment.