1
0
Fork 0
mirror of https://github.com/miniflux/v2.git synced 2025-08-26 18:21:01 +00:00

Use canonical imports

This commit is contained in:
Frédéric Guillot 2018-08-24 21:51:50 -07:00
parent 7f2612d9a6
commit dbcc5d8a97
263 changed files with 962 additions and 956 deletions

View file

@ -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 (

View file

@ -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.

View file

@ -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"

View file

@ -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.

View file

@ -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"

View file

@ -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"

View file

@ -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"

View file

@ -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.

View file

@ -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.

View file

@ -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"

View file

@ -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"

View file

@ -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.