From 967c380dc3ca1a96c6cbabd6296b0656a6546016 Mon Sep 17 00:00:00 2001 From: Leonid Bugaev Date: Wed, 31 Aug 2016 17:27:45 +0300 Subject: [PATCH] go fmt --- elasticsearch.go | 2 +- gor.go | 2 +- input_raw_test.go | 8 ++++---- output_null.go | 6 +++--- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/elasticsearch.go b/elasticsearch.go index 2ff4ab93..a626853e 100644 --- a/elasticsearch.go +++ b/elasticsearch.go @@ -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" diff --git a/gor.go b/gor.go index 085eb988..b9cf1f85 100644 --- a/gor.go +++ b/gor.go @@ -132,4 +132,4 @@ func profileMEM(memprofile string) { f.Close() }) } -} \ No newline at end of file +} diff --git a/input_raw_test.go b/input_raw_test.go index a40b0fad..9ad8065e 100644 --- a/input_raw_test.go +++ b/input_raw_test.go @@ -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, } diff --git a/output_null.go b/output_null.go index 14867a26..4b756db0 100644 --- a/output_null.go +++ b/output_null.go @@ -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" }