diff options
author | Wolfy-J <[email protected]> | 2018-07-08 21:01:40 -0700 |
---|---|---|
committer | Wolfy-J <[email protected]> | 2018-07-08 21:01:40 -0700 |
commit | ef38a99429c9916137ecd5953703a694bfc1c569 (patch) | |
tree | af6c127dbd3d1cd63a30fb9082f7b9ef236da844 /service | |
parent | a180d5e1128f735976497dff69c8c3a1061c42c7 (diff) |
go fmt
Diffstat (limited to 'service')
-rw-r--r-- | service/entry_test.go | 2 | ||||
-rw-r--r-- | service/http/config.go | 2 | ||||
-rw-r--r-- | service/http/request.go | 4 | ||||
-rw-r--r-- | service/http/service.go | 2 | ||||
-rw-r--r-- | service/injector.go | 4 | ||||
-rw-r--r-- | service/injector_test.go | 8 | ||||
-rw-r--r-- | service/rpc/config.go | 2 | ||||
-rw-r--r-- | service/static/config.go | 2 |
8 files changed, 13 insertions, 13 deletions
diff --git a/service/entry_test.go b/service/entry_test.go index 67f982ba..b5c71a10 100644 --- a/service/entry_test.go +++ b/service/entry_test.go @@ -1,8 +1,8 @@ package service import ( - "testing" "github.com/stretchr/testify/assert" + "testing" ) func TestEntry_CanServeFalse(t *testing.T) { diff --git a/service/http/config.go b/service/http/config.go index ebdd0343..ba303aae 100644 --- a/service/http/config.go +++ b/service/http/config.go @@ -3,8 +3,8 @@ package http import ( "errors" "github.com/spiral/roadrunner" - "strings" "github.com/spiral/roadrunner/service" + "strings" "time" ) diff --git a/service/http/request.go b/service/http/request.go index 08e2a03e..6d5cc126 100644 --- a/service/http/request.go +++ b/service/http/request.go @@ -4,12 +4,12 @@ import ( "encoding/json" "fmt" "github.com/spiral/roadrunner" + "github.com/spiral/roadrunner/service/http/attributes" "io/ioutil" + "net" "net/http" "net/url" "strings" - "github.com/spiral/roadrunner/service/http/attributes" - "net" ) const ( diff --git a/service/http/service.go b/service/http/service.go index 30289e3c..f7fdf2ab 100644 --- a/service/http/service.go +++ b/service/http/service.go @@ -3,11 +3,11 @@ package http import ( "context" "github.com/spiral/roadrunner" + "github.com/spiral/roadrunner/service/http/attributes" "github.com/spiral/roadrunner/service/rpc" "net/http" "sync" "sync/atomic" - "github.com/spiral/roadrunner/service/http/attributes" ) // ID contains default svc name. diff --git a/service/injector.go b/service/injector.go index 2d18b651..3c41240a 100644 --- a/service/injector.go +++ b/service/injector.go @@ -1,8 +1,8 @@ package service import ( - "reflect" "fmt" + "reflect" ) const initMethod = "Init" @@ -42,7 +42,7 @@ func initService(s interface{}, cfg Config, c *container) (bool, error) { // injectValues returns slice of call arguments for service Init method. func injectValues(m reflect.Method, s interface{}, cfg Config, c *container) (values []reflect.Value, err error) { - for i := 0; i < m.Type.NumIn(); i ++ { + for i := 0; i < m.Type.NumIn(); i++ { v := m.Type.In(i) switch { diff --git a/service/injector_test.go b/service/injector_test.go index 3a2bf405..facc3f74 100644 --- a/service/injector_test.go +++ b/service/injector_test.go @@ -1,10 +1,10 @@ package service import ( - "testing" - "github.com/stretchr/testify/assert" - "github.com/sirupsen/logrus/hooks/test" "github.com/sirupsen/logrus" + "github.com/sirupsen/logrus/hooks/test" + "github.com/stretchr/testify/assert" + "testing" ) func TestContainer_Init(t *testing.T) { @@ -21,4 +21,4 @@ func TestContainer_Init(t *testing.T) { assert.NoError(t, c.Serve()) c.Stop() -}
\ No newline at end of file +} diff --git a/service/rpc/config.go b/service/rpc/config.go index 0485fdf6..c37b0853 100644 --- a/service/rpc/config.go +++ b/service/rpc/config.go @@ -2,10 +2,10 @@ package rpc import ( "errors" + "github.com/spiral/roadrunner/service" "net" "strings" "syscall" - "github.com/spiral/roadrunner/service" ) // Config defines RPC service config. diff --git a/service/static/config.go b/service/static/config.go index 6a2d1206..95fdbeee 100644 --- a/service/static/config.go +++ b/service/static/config.go @@ -2,10 +2,10 @@ package static import ( "github.com/pkg/errors" + "github.com/spiral/roadrunner/service" "os" "path" "strings" - "github.com/spiral/roadrunner/service" ) // Config describes file location and controls access to them. |