diff options
author | Frédéric Guillot <fred@miniflux.net> | 2018-08-24 21:51:50 -0700 |
---|---|---|
committer | Frédéric Guillot <fred@miniflux.net> | 2018-08-24 21:56:39 -0700 |
commit | dbcc5d8a972f4f169e9e2c0636450555a06152b9 (patch) | |
tree | 00d7ed89efc2ffdbfa4c602ba66b0c156d48cb0d /http | |
parent | 7f2612d9a67ccb97a9cee8c330b7445f11497d01 (diff) |
Use canonical imports
Diffstat (limited to 'http')
-rw-r--r-- | http/client/client.go | 10 | ||||
-rw-r--r-- | http/client/response.go | 4 | ||||
-rw-r--r-- | http/client/response_test.go | 2 | ||||
-rw-r--r-- | http/context/context.go | 4 | ||||
-rw-r--r-- | http/cookie/cookie.go | 2 | ||||
-rw-r--r-- | http/request/request.go | 2 | ||||
-rw-r--r-- | http/request/request_test.go | 2 | ||||
-rw-r--r-- | http/response/html/html.go | 6 | ||||
-rw-r--r-- | http/response/json/json.go | 6 | ||||
-rw-r--r-- | http/response/response.go | 2 | ||||
-rw-r--r-- | http/response/xml/xml.go | 2 | ||||
-rw-r--r-- | http/route/route.go | 4 |
12 files changed, 23 insertions, 23 deletions
diff --git a/http/client/client.go b/http/client/client.go index d9f3524..201b136 100644 --- a/http/client/client.go +++ b/http/client/client.go @@ -2,7 +2,7 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package client +package client // import "miniflux.app/http/client" import ( "bytes" @@ -18,10 +18,10 @@ import ( "strings" "time" - "github.com/miniflux/miniflux/errors" - "github.com/miniflux/miniflux/logger" - "github.com/miniflux/miniflux/timer" - "github.com/miniflux/miniflux/version" + "miniflux.app/errors" + "miniflux.app/logger" + "miniflux.app/timer" + "miniflux.app/version" ) const ( diff --git a/http/client/response.go b/http/client/response.go index d4e3cdc..0efd8e2 100644 --- a/http/client/response.go +++ b/http/client/response.go @@ -2,15 +2,15 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package client +package client // import "miniflux.app/http/client" import ( "io" "mime" "strings" - "github.com/miniflux/miniflux/logger" "golang.org/x/net/html/charset" + "miniflux.app/logger" ) // Response wraps a server response. diff --git a/http/client/response_test.go b/http/client/response_test.go index f3402a8..cd0f73d 100644 --- a/http/client/response_test.go +++ b/http/client/response_test.go @@ -2,7 +2,7 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package client +package client // import "miniflux.app/http/client" import "testing" diff --git a/http/context/context.go b/http/context/context.go index 4ca95c5..1c65e64 100644 --- a/http/context/context.go +++ b/http/context/context.go @@ -2,12 +2,12 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package context +package context // import "miniflux.app/http/context" import ( "net/http" - "github.com/miniflux/miniflux/middleware" + "miniflux.app/middleware" ) // Context contains helper functions related to the current request. diff --git a/http/cookie/cookie.go b/http/cookie/cookie.go index 4407daa..d0e55eb 100644 --- a/http/cookie/cookie.go +++ b/http/cookie/cookie.go @@ -2,7 +2,7 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package cookie +package cookie // import "miniflux.app/http/cookie" import ( "net/http" diff --git a/http/request/request.go b/http/request/request.go index cc5a4dd..802b1d0 100644 --- a/http/request/request.go +++ b/http/request/request.go @@ -2,7 +2,7 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package request +package request // import "miniflux.app/http/request" import ( "fmt" diff --git a/http/request/request_test.go b/http/request/request_test.go index a4aaabf..fa2c4b1 100644 --- a/http/request/request_test.go +++ b/http/request/request_test.go @@ -2,7 +2,7 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package request +package request // import "miniflux.app/http/request" import ( "net/http" diff --git a/http/response/html/html.go b/http/response/html/html.go index a17ce04..65a4649 100644 --- a/http/response/html/html.go +++ b/http/response/html/html.go @@ -2,13 +2,13 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package html +package html // import "miniflux.app/http/response/html" import ( "net/http" - "github.com/miniflux/miniflux/http/response" - "github.com/miniflux/miniflux/logger" + "miniflux.app/http/response" + "miniflux.app/logger" ) // OK writes a standard HTML response. diff --git a/http/response/json/json.go b/http/response/json/json.go index 6f3eb15..f19efb0 100644 --- a/http/response/json/json.go +++ b/http/response/json/json.go @@ -2,15 +2,15 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package json +package json // import "miniflux.app/http/response/json" import ( "encoding/json" "errors" "net/http" - "github.com/miniflux/miniflux/http/response" - "github.com/miniflux/miniflux/logger" + "miniflux.app/http/response" + "miniflux.app/logger" ) // OK sends a JSON response with the status code 200. diff --git a/http/response/response.go b/http/response/response.go index f792625..4d73171 100644 --- a/http/response/response.go +++ b/http/response/response.go @@ -2,7 +2,7 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package response +package response // import "miniflux.app/http/response" import ( "compress/flate" diff --git a/http/response/xml/xml.go b/http/response/xml/xml.go index 9e37e87..bceb5f1 100644 --- a/http/response/xml/xml.go +++ b/http/response/xml/xml.go @@ -2,7 +2,7 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package xml +package xml // import "miniflux.app/http/response/xml" import ( "fmt" diff --git a/http/route/route.go b/http/route/route.go index ee574a5..e7b1dc2 100644 --- a/http/route/route.go +++ b/http/route/route.go @@ -2,13 +2,13 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package route +package route // import "miniflux.app/http/route" import ( "strconv" "github.com/gorilla/mux" - "github.com/miniflux/miniflux/logger" + "miniflux.app/logger" ) // Path returns the defined route based on given arguments. |