Browse Source

Use canonical imports

Frédéric Guillot 7 months ago
parent
commit
dbcc5d8a97
100 changed files with 245 additions and 241 deletions
  1. 1
    0
      .travis.yml
  2. 7
    7
      Makefile
  3. 1
    1
      README.md
  4. 4
    4
      api/category.go
  5. 3
    3
      api/controller.go
  6. 1
    1
      api/doc.go
  7. 6
    6
      api/entry.go
  8. 4
    4
      api/feed.go
  9. 4
    4
      api/icon.go
  10. 5
    5
      api/opml.go
  11. 2
    2
      api/payload.go
  12. 2
    2
      api/payload_test.go
  13. 3
    3
      api/subscription.go
  14. 4
    4
      api/user.go
  15. 1
    1
      cli/ask_credentials.go
  16. 7
    7
      cli/cli.go
  17. 3
    3
      cli/create_admin.go
  18. 1
    1
      cli/doc.go
  19. 2
    2
      cli/flush_sessions.go
  20. 2
    2
      cli/info.go
  21. 2
    2
      cli/reset_password.go
  22. 2
    2
      config/config.go
  23. 1
    1
      config/config_test.go
  24. 1
    1
      config/doc.go
  25. 1
    1
      crypto/crypto.go
  26. 1
    1
      crypto/doc.go
  27. 7
    7
      daemon/daemon.go
  28. 1
    1
      daemon/doc.go
  29. 11
    11
      daemon/routes.go
  30. 7
    7
      daemon/server.go
  31. 1
    1
      database/database.go
  32. 2
    2
      database/migration.go
  33. 1
    1
      database/sql.go
  34. 2
    2
      doc.go
  35. 1
    1
      errors/doc.go
  36. 2
    2
      errors/errors.go
  37. 1
    1
      fever/doc.go
  38. 9
    9
      fever/fever.go
  39. 1
    1
      filter/doc.go
  40. 4
    4
      filter/image_proxy_filter.go
  41. 2
    2
      filter/image_proxy_filter_test.go
  42. 16
    13
      generate.go
  43. 5
    5
      http/client/client.go
  44. 2
    2
      http/client/response.go
  45. 1
    1
      http/client/response_test.go
  46. 2
    2
      http/context/context.go
  47. 1
    1
      http/cookie/cookie.go
  48. 1
    1
      http/request/request.go
  49. 1
    1
      http/request/request_test.go
  50. 3
    3
      http/response/html/html.go
  51. 3
    3
      http/response/json/json.go
  52. 1
    1
      http/response/response.go
  53. 1
    1
      http/response/xml/xml.go
  54. 2
    2
      http/route/route.go
  55. 1
    1
      integration/doc.go
  56. 2
    2
      integration/instapaper/instapaper.go
  57. 9
    9
      integration/integration.go
  58. 2
    2
      integration/nunuxkeeper/nunuxkeeper.go
  59. 2
    2
      integration/pinboard/pinboard.go
  60. 2
    2
      integration/pocket/connector.go
  61. 2
    2
      integration/pocket/pocket.go
  62. 2
    2
      integration/wallabag/wallabag.go
  63. 1
    1
      locale/doc.go
  64. 1
    1
      locale/language.go
  65. 2
    2
      locale/locale.go
  66. 1
    1
      locale/locale_test.go
  67. 1
    1
      locale/plurals.go
  68. 1
    1
      locale/translations.go
  69. 1
    1
      locale/translator.go
  70. 1
    1
      logger/doc.go
  71. 1
    1
      logger/logger.go
  72. 2
    2
      main.go
  73. 6
    6
      middleware/app_session.go
  74. 3
    3
      middleware/basic_auth.go
  75. 1
    1
      middleware/common_headers.go
  76. 1
    1
      middleware/context_keys.go
  77. 3
    3
      middleware/fever.go
  78. 1
    1
      middleware/header_config.go
  79. 3
    3
      middleware/logging.go
  80. 3
    3
      middleware/middleware.go
  81. 7
    7
      middleware/user_session.go
  82. 1
    1
      model/app_session.go
  83. 1
    1
      model/category.go
  84. 1
    1
      model/category_test.go
  85. 1
    1
      model/doc.go
  86. 1
    1
      model/enclosure.go
  87. 1
    1
      model/entry.go
  88. 1
    1
      model/entry_test.go
  89. 1
    1
      model/feed.go
  90. 1
    1
      model/icon.go
  91. 1
    1
      model/integration.go
  92. 1
    1
      model/job.go
  93. 2
    2
      model/theme.go
  94. 1
    1
      model/theme_test.go
  95. 2
    2
      model/user.go
  96. 2
    2
      model/user_session.go
  97. 1
    1
      model/user_test.go
  98. 1
    1
      oauth2/doc.go
  99. 1
    1
      oauth2/google.go
  100. 0
    0
      oauth2/manager.go

+ 1
- 0
.travis.yml View File

@@ -5,6 +5,7 @@ services:
5 5
 addons:
6 6
   postgresql: "9.4"
7 7
 language: go
8
+go_import_path: "miniflux.app"
8 9
 go:
9 10
   - "1.10"
10 11
 before_install:

+ 7
- 7
Makefile View File

@@ -8,22 +8,22 @@ DB_URL := postgres://postgres:postgres@localhost/miniflux_test?sslmode=disable
8 8
 
9 9
 linux:
10 10
 	@ go generate
11
-	@ GOOS=linux GOARCH=amd64 go build -ldflags="-s -w -X 'github.com/miniflux/miniflux/version.Version=$(VERSION)' -X 'github.com/miniflux/miniflux/version.BuildDate=$(BUILD_DATE)'" -o $(APP)-linux-amd64 main.go
11
+	@ GOOS=linux GOARCH=amd64 go build -ldflags="-s -w -X 'miniflux.app/version.Version=$(VERSION)' -X 'miniflux.app/version.BuildDate=$(BUILD_DATE)'" -o $(APP)-linux-amd64 main.go
12 12
 
13 13
 linux-arm:
14 14
 	@ go generate
15
-	@ GOOS=linux GOARCH=arm64 go build -ldflags="-s -w -X 'github.com/miniflux/miniflux/version.Version=$(VERSION)' -X 'github.com/miniflux/miniflux/version.BuildDate=$(BUILD_DATE)'" -o $(APP)-linux-armv8 main.go
16
-	@ GOOS=linux GOARCH=arm GOARM=7 go build -ldflags="-s -w -X 'github.com/miniflux/miniflux/version.Version=$(VERSION)' -X 'github.com/miniflux/miniflux/version.BuildDate=$(BUILD_DATE)'" -o $(APP)-linux-armv7 main.go
17
-	@ GOOS=linux GOARCH=arm GOARM=6 go build -ldflags="-s -w -X 'github.com/miniflux/miniflux/version.Version=$(VERSION)' -X 'github.com/miniflux/miniflux/version.BuildDate=$(BUILD_DATE)'" -o $(APP)-linux-armv6 main.go
18
-	@ GOOS=linux GOARCH=arm GOARM=5 go build -ldflags="-s -w -X 'github.com/miniflux/miniflux/version.Version=$(VERSION)' -X 'github.com/miniflux/miniflux/version.BuildDate=$(BUILD_DATE)'" -o $(APP)-linux-armv5 main.go
15
+	@ GOOS=linux GOARCH=arm64 go build -ldflags="-s -w -X 'miniflux.app/version.Version=$(VERSION)' -X 'miniflux.app/version.BuildDate=$(BUILD_DATE)'" -o $(APP)-linux-armv8 main.go
16
+	@ GOOS=linux GOARCH=arm GOARM=7 go build -ldflags="-s -w -X 'miniflux.app/version.Version=$(VERSION)' -X 'miniflux.app/version.BuildDate=$(BUILD_DATE)'" -o $(APP)-linux-armv7 main.go
17
+	@ GOOS=linux GOARCH=arm GOARM=6 go build -ldflags="-s -w -X 'miniflux.app/version.Version=$(VERSION)' -X 'miniflux.app/version.BuildDate=$(BUILD_DATE)'" -o $(APP)-linux-armv6 main.go
18
+	@ GOOS=linux GOARCH=arm GOARM=5 go build -ldflags="-s -w -X 'miniflux.app/version.Version=$(VERSION)' -X 'miniflux.app/version.BuildDate=$(BUILD_DATE)'" -o $(APP)-linux-armv5 main.go
19 19
 
20 20
 darwin:
21 21
 	@ go generate
22
-	@ GOOS=darwin GOARCH=amd64 go build -ldflags="-s -w -X 'github.com/miniflux/miniflux/version.Version=$(VERSION)' -X 'github.com/miniflux/miniflux/version.BuildDate=$(BUILD_DATE)'" -o $(APP)-darwin-amd64 main.go
22
+	@ GOOS=darwin GOARCH=amd64 go build -ldflags="-s -w -X 'miniflux.app/version.Version=$(VERSION)' -X 'miniflux.app/version.BuildDate=$(BUILD_DATE)'" -o $(APP)-darwin-amd64 main.go
23 23
 
24 24
 freebsd:
25 25
 	@ go generate
26
-	@ GOOS=freebsd GOARCH=amd64 go build -ldflags="-s -w -X 'githug.com/miniflux/miniflux/version.Version=$(VERSION)' -X 'github.com/miniflux/miniflux/version.BuildDate=$(BUILD_DATE)'" -o $(APP)-freebsd-amd64 main.go
26
+	@ GOOS=freebsd GOARCH=amd64 go build -ldflags="-s -w -X 'miniflux.app/version.Version=$(VERSION)' -X 'miniflux.app/version.BuildDate=$(BUILD_DATE)'" -o $(APP)-freebsd-amd64 main.go
27 27
 
28 28
 build: linux linux-arm darwin freebsd
29 29
 

+ 1
- 1
README.md View File

@@ -1,7 +1,7 @@
1 1
 Miniflux 2
2 2
 ==========
3 3
 [![Build Status](https://travis-ci.org/miniflux/miniflux.svg?branch=master)](https://travis-ci.org/miniflux/miniflux)
4
-[![GoDoc](https://godoc.org/github.com/miniflux/miniflux?status.svg)](https://godoc.org/github.com/miniflux/miniflux)
4
+[![GoDoc](https://godoc.org/miniflux.app?status.svg)](https://godoc.org/miniflux.app)
5 5
 [![Documentation Status](https://readthedocs.org/projects/miniflux/badge/?version=latest)](https://docs.miniflux.app/)
6 6
 
7 7
 Miniflux is a minimalist and opinionated feed reader:

+ 4
- 4
api/category.go View File

@@ -2,15 +2,15 @@
2 2
 // Use of this source code is governed by the Apache 2.0
3 3
 // license that can be found in the LICENSE file.
4 4
 
5
-package api
5
+package api // import "miniflux.app/api"
6 6
 
7 7
 import (
8 8
 	"errors"
9 9
 	"net/http"
10 10
 
11
-	"github.com/miniflux/miniflux/http/context"
12
-	"github.com/miniflux/miniflux/http/request"
13
-	"github.com/miniflux/miniflux/http/response/json"
11
+	"miniflux.app/http/context"
12
+	"miniflux.app/http/request"
13
+	"miniflux.app/http/response/json"
14 14
 )
15 15
 
16 16
 // CreateCategory is the API handler to create a new category.

+ 3
- 3
api/controller.go View File

@@ -2,11 +2,11 @@
2 2
 // Use of this source code is governed by the Apache 2.0
3 3
 // license that can be found in the LICENSE file.
4 4
 
5
-package api
5
+package api // import "miniflux.app/api"
6 6
 
7 7
 import (
8
-	"github.com/miniflux/miniflux/reader/feed"
9
-	"github.com/miniflux/miniflux/storage"
8
+	"miniflux.app/reader/feed"
9
+	"miniflux.app/storage"
10 10
 )
11 11
 
12 12
 // Controller holds all handlers for the API.

+ 1
- 1
api/doc.go View File

@@ -7,4 +7,4 @@
7 7
 Package api implements API endpoints for Miniflux application.
8 8
 
9 9
 */
10
-package api
10
+package api // import "miniflux.app/api"

+ 6
- 6
api/entry.go View File

@@ -2,18 +2,18 @@
2 2
 // Use of this source code is governed by the Apache 2.0
3 3
 // license that can be found in the LICENSE file.
4 4
 
5
-package api
5
+package api // import "miniflux.app/api"
6 6
 
7 7
 import (
8 8
 	"errors"
9 9
 	"net/http"
10 10
 	"time"
11 11
 
12
-	"github.com/miniflux/miniflux/http/context"
13
-	"github.com/miniflux/miniflux/http/request"
14
-	"github.com/miniflux/miniflux/http/response/json"
15
-	"github.com/miniflux/miniflux/model"
16
-	"github.com/miniflux/miniflux/storage"
12
+	"miniflux.app/http/context"
13
+	"miniflux.app/http/request"
14
+	"miniflux.app/http/response/json"
15
+	"miniflux.app/model"
16
+	"miniflux.app/storage"
17 17
 )
18 18
 
19 19
 // GetFeedEntry is the API handler to get a single feed entry.

+ 4
- 4
api/feed.go View File

@@ -2,15 +2,15 @@
2 2
 // Use of this source code is governed by the Apache 2.0
3 3
 // license that can be found in the LICENSE file.
4 4
 
5
-package api
5
+package api // import "miniflux.app/api"
6 6
 
7 7
 import (
8 8
 	"errors"
9 9
 	"net/http"
10 10
 
11
-	"github.com/miniflux/miniflux/http/context"
12
-	"github.com/miniflux/miniflux/http/request"
13
-	"github.com/miniflux/miniflux/http/response/json"
11
+	"miniflux.app/http/context"
12
+	"miniflux.app/http/request"
13
+	"miniflux.app/http/response/json"
14 14
 )
15 15
 
16 16
 // CreateFeed is the API handler to create a new feed.

+ 4
- 4
api/icon.go View File

@@ -2,15 +2,15 @@
2 2
 // Use of this source code is governed by the Apache 2.0
3 3
 // license that can be found in the LICENSE file.
4 4
 
5
-package api
5
+package api // import "miniflux.app/api"
6 6
 
7 7
 import (
8 8
 	"errors"
9 9
 	"net/http"
10 10
 
11
-	"github.com/miniflux/miniflux/http/context"
12
-	"github.com/miniflux/miniflux/http/request"
13
-	"github.com/miniflux/miniflux/http/response/json"
11
+	"miniflux.app/http/context"
12
+	"miniflux.app/http/request"
13
+	"miniflux.app/http/response/json"
14 14
 )
15 15
 
16 16
 // FeedIcon returns a feed icon.

+ 5
- 5
api/opml.go View File

@@ -2,15 +2,15 @@
2 2
 // Use of this source code is governed by the Apache 2.0
3 3
 // license that can be found in the LICENSE file.
4 4
 
5
-package api
5
+package api // import "miniflux.app/api"
6 6
 
7 7
 import (
8 8
 	"net/http"
9 9
 
10
-	"github.com/miniflux/miniflux/http/context"
11
-	"github.com/miniflux/miniflux/http/response/json"
12
-	"github.com/miniflux/miniflux/http/response/xml"
13
-	"github.com/miniflux/miniflux/reader/opml"
10
+	"miniflux.app/http/context"
11
+	"miniflux.app/http/response/json"
12
+	"miniflux.app/http/response/xml"
13
+	"miniflux.app/reader/opml"
14 14
 )
15 15
 
16 16
 // Export is the API handler that export feeds to OPML.

+ 2
- 2
api/payload.go View File

@@ -2,14 +2,14 @@
2 2
 // Use of this source code is governed by the Apache 2.0
3 3
 // license that can be found in the LICENSE file.
4 4
 
5
-package api
5
+package api // import "miniflux.app/api"
6 6
 
7 7
 import (
8 8
 	"encoding/json"
9 9
 	"fmt"
10 10
 	"io"
11 11
 
12
-	"github.com/miniflux/miniflux/model"
12
+	"miniflux.app/model"
13 13
 )
14 14
 
15 15
 type feedIcon struct {

+ 2
- 2
api/payload_test.go View File

@@ -2,12 +2,12 @@
2 2
 // Use of this source code is governed by the Apache 2.0
3 3
 // license that can be found in the LICENSE file.
4 4
 
5
-package api
5
+package api // import "miniflux.app/api"
6 6
 
7 7
 import (
8 8
 	"testing"
9 9
 
10
-	"github.com/miniflux/miniflux/model"
10
+	"miniflux.app/model"
11 11
 )
12 12
 
13 13
 func TestUpdateFeedURL(t *testing.T) {

+ 3
- 3
api/subscription.go View File

@@ -2,15 +2,15 @@
2 2
 // Use of this source code is governed by the Apache 2.0
3 3
 // license that can be found in the LICENSE file.
4 4
 
5
-package api
5
+package api // import "miniflux.app/api"
6 6
 
7 7
 import (
8 8
 	"errors"
9 9
 	"fmt"
10 10
 	"net/http"
11 11
 
12
-	"github.com/miniflux/miniflux/http/response/json"
13
-	"github.com/miniflux/miniflux/reader/subscription"
12
+	"miniflux.app/http/response/json"
13
+	"miniflux.app/reader/subscription"
14 14
 )
15 15
 
16 16
 // GetSubscriptions is the API handler to find subscriptions.

+ 4
- 4
api/user.go View File

@@ -2,15 +2,15 @@
2 2
 // Use of this source code is governed by the Apache 2.0
3 3
 // license that can be found in the LICENSE file.
4 4
 
5
-package api
5
+package api // import "miniflux.app/api"
6 6
 
7 7
 import (
8 8
 	"errors"
9 9
 	"net/http"
10 10
 
11
-	"github.com/miniflux/miniflux/http/context"
12
-	"github.com/miniflux/miniflux/http/request"
13
-	"github.com/miniflux/miniflux/http/response/json"
11
+	"miniflux.app/http/context"
12
+	"miniflux.app/http/request"
13
+	"miniflux.app/http/response/json"
14 14
 )
15 15
 
16 16
 // CurrentUser is the API handler to retrieve the authenticated user.

+ 1
- 1
cli/ask_credentials.go View File

@@ -2,7 +2,7 @@
2 2
 // Use of this source code is governed by the Apache 2.0
3 3
 // license that can be found in the LICENSE file.
4 4
 
5
-package cli
5
+package cli // import "miniflux.app/cli"
6 6
 
7 7
 import (
8 8
 	"bufio"

+ 7
- 7
cli/cli.go View File

@@ -2,18 +2,18 @@
2 2
 // Use of this source code is governed by the Apache 2.0
3 3
 // license that can be found in the LICENSE file.
4 4
 
5
-package cli
5
+package cli // import "miniflux.app/cli"
6 6
 
7 7
 import (
8 8
 	"flag"
9 9
 	"fmt"
10 10
 
11
-	"github.com/miniflux/miniflux/config"
12
-	"github.com/miniflux/miniflux/daemon"
13
-	"github.com/miniflux/miniflux/database"
14
-	"github.com/miniflux/miniflux/logger"
15
-	"github.com/miniflux/miniflux/storage"
16
-	"github.com/miniflux/miniflux/version"
11
+	"miniflux.app/config"
12
+	"miniflux.app/daemon"
13
+	"miniflux.app/database"
14
+	"miniflux.app/logger"
15
+	"miniflux.app/storage"
16
+	"miniflux.app/version"
17 17
 )
18 18
 
19 19
 // Parse parses command line arguments.

+ 3
- 3
cli/create_admin.go View File

@@ -2,14 +2,14 @@
2 2
 // Use of this source code is governed by the Apache 2.0
3 3
 // license that can be found in the LICENSE file.
4 4
 
5
-package cli
5
+package cli // import "miniflux.app/cli"
6 6
 
7 7
 import (
8 8
 	"fmt"
9 9
 	"os"
10 10
 
11
-	"github.com/miniflux/miniflux/model"
12
-	"github.com/miniflux/miniflux/storage"
11
+	"miniflux.app/model"
12
+	"miniflux.app/storage"
13 13
 )
14 14
 
15 15
 func createAdmin(store *storage.Storage) {

+ 1
- 1
cli/doc.go View File

@@ -7,4 +7,4 @@
7 7
 Package cli implements command line arguments for Miniflux application.
8 8
 
9 9
 */
10
-package cli
10
+package cli // import "miniflux.app/cli"

+ 2
- 2
cli/flush_sessions.go View File

@@ -2,13 +2,13 @@
2 2
 // Use of this source code is governed by the Apache 2.0
3 3
 // license that can be found in the LICENSE file.
4 4
 
5
-package cli
5
+package cli // import "miniflux.app/cli"
6 6
 
7 7
 import (
8 8
 	"fmt"
9 9
 	"os"
10 10
 
11
-	"github.com/miniflux/miniflux/storage"
11
+	"miniflux.app/storage"
12 12
 )
13 13
 
14 14
 func flushSessions(store *storage.Storage) {

+ 2
- 2
cli/info.go View File

@@ -2,13 +2,13 @@
2 2
 // Use of this source code is governed by the Apache 2.0
3 3
 // license that can be found in the LICENSE file.
4 4
 
5
-package cli
5
+package cli // import "miniflux.app/cli"
6 6
 
7 7
 import (
8 8
 	"fmt"
9 9
 	"runtime"
10 10
 
11
-	"github.com/miniflux/miniflux/version"
11
+	"miniflux.app/version"
12 12
 )
13 13
 
14 14
 func info() {

+ 2
- 2
cli/reset_password.go View File

@@ -2,13 +2,13 @@
2 2
 // Use of this source code is governed by the Apache 2.0
3 3
 // license that can be found in the LICENSE file.
4 4
 
5
-package cli
5
+package cli // import "miniflux.app/cli"
6 6
 
7 7
 import (
8 8
 	"fmt"
9 9
 	"os"
10 10
 
11
-	"github.com/miniflux/miniflux/storage"
11
+	"miniflux.app/storage"
12 12
 )
13 13
 
14 14
 func resetPassword(store *storage.Storage) {

+ 2
- 2
config/config.go View File

@@ -2,7 +2,7 @@
2 2
 // Use of this source code is governed by the Apache 2.0
3 3
 // license that can be found in the LICENSE file.
4 4
 
5
-package config
5
+package config // import "miniflux.app/config"
6 6
 
7 7
 import (
8 8
 	"net/url"
@@ -10,7 +10,7 @@ import (
10 10
 	"strconv"
11 11
 	"strings"
12 12
 
13
-	"github.com/miniflux/miniflux/logger"
13
+	"miniflux.app/logger"
14 14
 )
15 15
 
16 16
 const (

+ 1
- 1
config/config_test.go View File

@@ -2,7 +2,7 @@
2 2
 // Use of this source code is governed by the Apache 2.0
3 3
 // license that can be found in the LICENSE file.
4 4
 
5
-package config
5
+package config // import "miniflux.app/config"
6 6
 
7 7
 import (
8 8
 	"os"

+ 1
- 1
config/doc.go View File

@@ -7,4 +7,4 @@
7 7
 Package config handles configuration values for Miniflux application.
8 8
 
9 9
 */
10
-package config
10
+package config // import "miniflux.app/config"

+ 1
- 1
crypto/crypto.go View File

@@ -2,7 +2,7 @@
2 2
 // Use of this source code is governed by the Apache 2.0
3 3
 // license that can be found in the LICENSE file.
4 4
 
5
-package crypto
5
+package crypto // import "miniflux.app/crypto"
6 6
 
7 7
 import (
8 8
 	"crypto/rand"

+ 1
- 1
crypto/doc.go View File

@@ -7,4 +7,4 @@
7 7
 Package crypto implements helpers related to cryptography.
8 8
 
9 9
 */
10
-package crypto
10
+package crypto // import "miniflux.app/crypto"

+ 7
- 7
daemon/daemon.go View File

@@ -2,7 +2,7 @@
2 2
 // Use of this source code is governed by the Apache 2.0
3 3
 // license that can be found in the LICENSE file.
4 4
 
5
-package daemon
5
+package daemon // import "miniflux.app/daemon"
6 6
 
7 7
 import (
8 8
 	"context"
@@ -12,12 +12,12 @@ import (
12 12
 	"syscall"
13 13
 	"time"
14 14
 
15
-	"github.com/miniflux/miniflux/config"
16
-	"github.com/miniflux/miniflux/locale"
17
-	"github.com/miniflux/miniflux/logger"
18
-	"github.com/miniflux/miniflux/reader/feed"
19
-	"github.com/miniflux/miniflux/scheduler"
20
-	"github.com/miniflux/miniflux/storage"
15
+	"miniflux.app/config"
16
+	"miniflux.app/locale"
17
+	"miniflux.app/logger"
18
+	"miniflux.app/reader/feed"
19
+	"miniflux.app/scheduler"
20
+	"miniflux.app/storage"
21 21
 )
22 22
 
23 23
 // Run starts the daemon.

+ 1
- 1
daemon/doc.go View File

@@ -7,4 +7,4 @@
7 7
 Package daemon handles the main application process.
8 8
 
9 9
 */
10
-package daemon
10
+package daemon // import "miniflux.app/daemon"

+ 11
- 11
daemon/routes.go View File

@@ -2,21 +2,21 @@
2 2
 // Use of this source code is governed by the Apache 2.0
3 3
 // license that can be found in the LICENSE file.
4 4
 
5
-package daemon
5
+package daemon // import "miniflux.app/daemon"
6 6
 
7 7
 import (
8 8
 	"net/http"
9 9
 
10
-	"github.com/miniflux/miniflux/api"
11
-	"github.com/miniflux/miniflux/config"
12
-	"github.com/miniflux/miniflux/fever"
13
-	"github.com/miniflux/miniflux/locale"
14
-	"github.com/miniflux/miniflux/middleware"
15
-	"github.com/miniflux/miniflux/reader/feed"
16
-	"github.com/miniflux/miniflux/scheduler"
17
-	"github.com/miniflux/miniflux/storage"
18
-	"github.com/miniflux/miniflux/template"
19
-	"github.com/miniflux/miniflux/ui"
10
+	"miniflux.app/api"
11
+	"miniflux.app/config"
12
+	"miniflux.app/fever"
13
+	"miniflux.app/locale"
14
+	"miniflux.app/middleware"
15
+	"miniflux.app/reader/feed"
16
+	"miniflux.app/scheduler"
17
+	"miniflux.app/storage"
18
+	"miniflux.app/template"
19
+	"miniflux.app/ui"
20 20
 
21 21
 	"github.com/gorilla/mux"
22 22
 )

+ 7
- 7
daemon/server.go View File

@@ -2,19 +2,19 @@
2 2
 // Use of this source code is governed by the Apache 2.0
3 3
 // license that can be found in the LICENSE file.
4 4
 
5
-package daemon
5
+package daemon // import "miniflux.app/daemon"
6 6
 
7 7
 import (
8 8
 	"crypto/tls"
9 9
 	"net/http"
10 10
 	"time"
11 11
 
12
-	"github.com/miniflux/miniflux/config"
13
-	"github.com/miniflux/miniflux/locale"
14
-	"github.com/miniflux/miniflux/logger"
15
-	"github.com/miniflux/miniflux/reader/feed"
16
-	"github.com/miniflux/miniflux/scheduler"
17
-	"github.com/miniflux/miniflux/storage"
12
+	"miniflux.app/config"
13
+	"miniflux.app/locale"
14
+	"miniflux.app/logger"
15
+	"miniflux.app/reader/feed"
16
+	"miniflux.app/scheduler"
17
+	"miniflux.app/storage"
18 18
 
19 19
 	"golang.org/x/crypto/acme/autocert"
20 20
 )

+ 1
- 1
database/database.go View File

@@ -2,7 +2,7 @@
2 2
 // Use of this source code is governed by the Apache 2.0
3 3
 // license that can be found in the LICENSE file.
4 4
 
5
-package database
5
+package database // import "miniflux.app/database"
6 6
 
7 7
 import (
8 8
 	"database/sql"

+ 2
- 2
database/migration.go View File

@@ -2,14 +2,14 @@
2 2
 // Use of this source code is governed by the Apache 2.0
3 3
 // license that can be found in the LICENSE file.
4 4
 
5
-package database
5
+package database // import "miniflux.app/database"
6 6
 
7 7
 import (
8 8
 	"database/sql"
9 9
 	"fmt"
10 10
 	"strconv"
11 11
 
12
-	"github.com/miniflux/miniflux/logger"
12
+	"miniflux.app/logger"
13 13
 )
14 14
 
15 15
 const schemaVersion = 20

+ 1
- 1
database/sql.go View File

@@ -1,6 +1,6 @@
1 1
 // Code generated by go generate; DO NOT EDIT.
2 2
 
3
-package database
3
+package database // import "miniflux.app/database"
4 4
 
5 5
 var SqlMap = map[string]string{
6 6
 	"schema_version_1": `create table schema_version (

+ 2
- 2
doc.go View File

@@ -4,7 +4,7 @@
4 4
 
5 5
 /*
6 6
 
7
-Package main implements a feed reader application.
7
+Miniflux is a feed reader application.
8 8
 
9 9
 */
10
-package main
10
+package main // import "miniflux.app"

+ 1
- 1
errors/doc.go View File

@@ -7,4 +7,4 @@
7 7
 Package errors handles localized errors.
8 8
 
9 9
 */
10
-package errors
10
+package errors // import "miniflux.app/errors"

+ 2
- 2
errors/errors.go View File

@@ -2,12 +2,12 @@
2 2
 // Use of this source code is governed by the Apache 2.0
3 3
 // license that can be found in the LICENSE file.
4 4
 
5
-package errors
5
+package errors // import "miniflux.app/errors"
6 6
 
7 7
 import (
8 8
 	"fmt"
9 9
 
10
-	"github.com/miniflux/miniflux/locale"
10
+	"miniflux.app/locale"
11 11
 )
12 12
 
13 13
 // LocalizedError represents an error than could be translated to another language.

+ 1
- 1
fever/doc.go View File

@@ -7,4 +7,4 @@
7 7
 Package fever implements Fever API endpoints.
8 8
 
9 9
 */
10
-package fever
10
+package fever // import "miniflux.app/fever"

+ 9
- 9
fever/fever.go View File

@@ -2,7 +2,7 @@
2 2
 // Use of this source code is governed by the Apache 2.0
3 3
 // license that can be found in the LICENSE file.
4 4
 
5
-package fever
5
+package fever // import "miniflux.app/fever"
6 6
 
7 7
 import (
8 8
 	"net/http"
@@ -10,14 +10,14 @@ import (
10 10
 	"strings"
11 11
 	"time"
12 12
 
13
-	"github.com/miniflux/miniflux/config"
14
-	"github.com/miniflux/miniflux/http/context"
15
-	"github.com/miniflux/miniflux/http/request"
16
-	"github.com/miniflux/miniflux/http/response/json"
17
-	"github.com/miniflux/miniflux/integration"
18
-	"github.com/miniflux/miniflux/logger"
19
-	"github.com/miniflux/miniflux/model"
20
-	"github.com/miniflux/miniflux/storage"
13
+	"miniflux.app/config"
14
+	"miniflux.app/http/context"
15
+	"miniflux.app/http/request"
16
+	"miniflux.app/http/response/json"
17
+	"miniflux.app/integration"
18
+	"miniflux.app/logger"
19
+	"miniflux.app/model"
20
+	"miniflux.app/storage"
21 21
 )
22 22
 
23 23
 type baseResponse struct {

+ 1
- 1
filter/doc.go View File

@@ -7,4 +7,4 @@
7 7
 Package filter implements a content filter to rewrite image links.
8 8
 
9 9
 */
10
-package filter
10
+package filter // import "miniflux.app/filter"

+ 4
- 4
filter/image_proxy_filter.go View File

@@ -2,15 +2,15 @@
2 2
 // Use of this source code is governed by the Apache 2.0
3 3
 // license that can be found in the LICENSE file.
4 4
 
5
-package filter
5
+package filter // import "miniflux.app/filter"
6 6
 
7 7
 import (
8 8
 	"encoding/base64"
9 9
 	"strings"
10 10
 
11
-	"github.com/miniflux/miniflux/config"
12
-	"github.com/miniflux/miniflux/http/route"
13
-	"github.com/miniflux/miniflux/url"
11
+	"miniflux.app/config"
12
+	"miniflux.app/http/route"
13
+	"miniflux.app/url"
14 14
 
15 15
 	"github.com/PuerkitoBio/goquery"
16 16
 	"github.com/gorilla/mux"

+ 2
- 2
filter/image_proxy_filter_test.go View File

@@ -2,14 +2,14 @@
2 2
 // Use of this source code is governed by the Apache 2.0
3 3
 // license that can be found in the LICENSE file.
4 4
 
5
-package filter
5
+package filter // import "miniflux.app/filter"
6 6
 
7 7
 import (
8 8
 	"net/http"
9 9
 	"os"
10 10
 	"testing"
11 11
 
12
-	"github.com/miniflux/miniflux/config"
12
+	"miniflux.app/config"
13 13
 
14 14
 	"github.com/gorilla/mux"
15 15
 )

+ 16
- 13
generate.go View File

@@ -24,7 +24,7 @@ import (
24 24
 
25 25
 const tpl = `// Code generated by go generate; DO NOT EDIT.
26 26
 
27
-package {{ .Package }}
27
+package {{ .Package }} // import "miniflux.app/{{ .ImportPath }}"
28 28
 
29 29
 var {{ .Map }} = map[string]string{
30 30
 {{ range $constant, $content := .Files }}` + "\t" + `"{{ $constant }}": ` + "`{{ $content }}`" + `,
@@ -38,9 +38,11 @@ var {{ .Map }}Checksums = map[string]string{
38 38
 var bundleTpl = template.Must(template.New("").Parse(tpl))
39 39
 
40 40
 type Bundle struct {
41
-	Package, Map string
42
-	Files        map[string]string
43
-	Checksums    map[string]string
41
+	Package    string
42
+	Map        string
43
+	ImportPath string
44
+	Files      map[string]string
45
+	Checksums  map[string]string
44 46
 }
45 47
 
46 48
 func (b *Bundle) Write(filename string) {
@@ -53,12 +55,13 @@ func (b *Bundle) Write(filename string) {
53 55
 	bundleTpl.Execute(f, b)
54 56
 }
55 57
 
56
-func NewBundle(pkg, mapName string) *Bundle {
58
+func NewBundle(pkg, mapName, importPath string) *Bundle {
57 59
 	return &Bundle{
58
-		Package:   pkg,
59
-		Map:       mapName,
60
-		Files:     make(map[string]string),
61
-		Checksums: make(map[string]string),
60
+		Package:    pkg,
61
+		Map:        mapName,
62
+		ImportPath: importPath,
63
+		Files:      make(map[string]string),
64
+		Checksums:  make(map[string]string),
62 65
 	}
63 66
 }
64 67
 
@@ -97,7 +100,7 @@ func concat(files []string) string {
97 100
 }
98 101
 
99 102
 func generateJSBundle(bundleFile string, bundleFiles map[string][]string, prefixes, suffixes map[string]string) {
100
-	bundle := NewBundle("static", "Javascripts")
103
+	bundle := NewBundle("static", "Javascripts", "ui/static")
101 104
 	m := minify.New()
102 105
 	m.AddFunc("text/javascript", js.Minify)
103 106
 
@@ -127,7 +130,7 @@ func generateJSBundle(bundleFile string, bundleFiles map[string][]string, prefix
127 130
 }
128 131
 
129 132
 func generateCSSBundle(bundleFile string, themes map[string][]string) {
130
-	bundle := NewBundle("static", "Stylesheets")
133
+	bundle := NewBundle("static", "Stylesheets", "ui/static")
131 134
 	m := minify.New()
132 135
 	m.AddFunc("text/css", css.Minify)
133 136
 
@@ -146,7 +149,7 @@ func generateCSSBundle(bundleFile string, themes map[string][]string) {
146 149
 }
147 150
 
148 151
 func generateBinaryBundle(bundleFile string, srcFiles []string) {
149
-	bundle := NewBundle("static", "Binaries")
152
+	bundle := NewBundle("static", "Binaries", "ui/static")
150 153
 
151 154
 	for _, srcFile := range srcFiles {
152 155
 		data := readFile(srcFile)
@@ -161,7 +164,7 @@ func generateBinaryBundle(bundleFile string, srcFiles []string) {
161 164
 }
162 165
 
163 166
 func generateBundle(bundleFile, pkg, mapName string, srcFiles []string) {
164
-	bundle := NewBundle(pkg, mapName)
167
+	bundle := NewBundle(pkg, mapName, pkg)
165 168
 
166 169
 	for _, srcFile := range srcFiles {
167 170
 		data := readFile(srcFile)

+ 5
- 5
http/client/client.go View File

@@ -2,7 +2,7 @@
2 2
 // Use of this source code is governed by the Apache 2.0
3 3
 // license that can be found in the LICENSE file.
4 4
 
5
-package client
5
+package client // import "miniflux.app/http/client"
6 6
 
7 7
 import (
8 8
 	"bytes"
@@ -18,10 +18,10 @@ import (
18 18
 	"strings"
19 19
 	"time"
20 20
 
21
-	"github.com/miniflux/miniflux/errors"
22
-	"github.com/miniflux/miniflux/logger"
23
-	"github.com/miniflux/miniflux/timer"
24
-	"github.com/miniflux/miniflux/version"
21
+	"miniflux.app/errors"
22
+	"miniflux.app/logger"
23
+	"miniflux.app/timer"
24
+	"miniflux.app/version"
25 25
 )
26 26
 
27 27
 const (

+ 2
- 2
http/client/response.go View File

@@ -2,15 +2,15 @@
2 2
 // Use of this source code is governed by the Apache 2.0
3 3
 // license that can be found in the LICENSE file.
4 4
 
5
-package client
5
+package client // import "miniflux.app/http/client"
6 6
 
7 7
 import (
8 8
 	"io"
9 9
 	"mime"
10 10
 	"strings"
11 11
 
12
-	"github.com/miniflux/miniflux/logger"
13 12
 	"golang.org/x/net/html/charset"
13
+	"miniflux.app/logger"
14 14
 )
15 15
 
16 16
 // Response wraps a server response.

+ 1
- 1
http/client/response_test.go View File

@@ -2,7 +2,7 @@
2 2
 // Use of this source code is governed by the Apache 2.0
3 3
 // license that can be found in the LICENSE file.
4 4
 
5
-package client
5
+package client // import "miniflux.app/http/client"
6 6
 
7 7
 import "testing"
8 8
 

+ 2
- 2
http/context/context.go View File

@@ -2,12 +2,12 @@
2 2
 // Use of this source code is governed by the Apache 2.0
3 3
 // license that can be found in the LICENSE file.
4 4
 
5
-package context
5
+package context // import "miniflux.app/http/context"
6 6
 
7 7
 import (
8 8
 	"net/http"
9 9
 
10
-	"github.com/miniflux/miniflux/middleware"
10
+	"miniflux.app/middleware"
11 11
 )
12 12
 
13 13
 // Context contains helper functions related to the current request.

+ 1
- 1
http/cookie/cookie.go View File

@@ -2,7 +2,7 @@
2 2
 // Use of this source code is governed by the Apache 2.0
3 3
 // license that can be found in the LICENSE file.
4 4
 
5
-package cookie
5
+package cookie // import "miniflux.app/http/cookie"
6 6
 
7 7
 import (
8 8
 	"net/http"

+ 1
- 1
http/request/request.go View File

@@ -2,7 +2,7 @@
2 2
 // Use of this source code is governed by the Apache 2.0
3 3
 // license that can be found in the LICENSE file.
4 4
 
5
-package request
5
+package request // import "miniflux.app/http/request"
6 6
 
7 7
 import (
8 8
 	"fmt"

+ 1
- 1
http/request/request_test.go View File

@@ -2,7 +2,7 @@
2 2
 // Use of this source code is governed by the Apache 2.0
3 3
 // license that can be found in the LICENSE file.
4 4
 
5
-package request
5
+package request // import "miniflux.app/http/request"
6 6
 
7 7
 import (
8 8
 	"net/http"

+ 3
- 3
http/response/html/html.go View File

@@ -2,13 +2,13 @@
2 2
 // Use of this source code is governed by the Apache 2.0
3 3
 // license that can be found in the LICENSE file.
4 4
 
5
-package html
5
+package html // import "miniflux.app/http/response/html"
6 6
 
7 7
 import (
8 8
 	"net/http"
9 9
 
10
-	"github.com/miniflux/miniflux/http/response"
11
-	"github.com/miniflux/miniflux/logger"
10
+	"miniflux.app/http/response"
11
+	"miniflux.app/logger"
12 12
 )
13 13
 
14 14
 // OK writes a standard HTML response.

+ 3
- 3
http/response/json/json.go View File

@@ -2,15 +2,15 @@
2 2
 // Use of this source code is governed by the Apache 2.0
3 3
 // license that can be found in the LICENSE file.
4 4
 
5
-package json
5
+package json // import "miniflux.app/http/response/json"
6 6
 
7 7
 import (
8 8
 	"encoding/json"
9 9
 	"errors"
10 10
 	"net/http"
11 11
 
12
-	"github.com/miniflux/miniflux/http/response"
13
-	"github.com/miniflux/miniflux/logger"
12
+	"miniflux.app/http/response"
13
+	"miniflux.app/logger"
14 14
 )
15 15
 
16 16
 // OK sends a JSON response with the status code 200.

+ 1
- 1
http/response/response.go View File

@@ -2,7 +2,7 @@
2 2
 // Use of this source code is governed by the Apache 2.0
3 3
 // license that can be found in the LICENSE file.
4 4
 
5
-package response
5
+package response // import "miniflux.app/http/response"
6 6
 
7 7
 import (
8 8
 	"compress/flate"

+ 1
- 1
http/response/xml/xml.go View File

@@ -2,7 +2,7 @@
2 2
 // Use of this source code is governed by the Apache 2.0
3 3
 // license that can be found in the LICENSE file.
4 4
 
5
-package xml
5
+package xml // import "miniflux.app/http/response/xml"
6 6
 
7 7
 import (
8 8
 	"fmt"

+ 2
- 2
http/route/route.go View File

@@ -2,13 +2,13 @@
2 2
 // Use of this source code is governed by the Apache 2.0
3 3
 // license that can be found in the LICENSE file.
4 4
 
5
-package route
5
+package route // import "miniflux.app/http/route"
6 6
 
7 7
 import (
8 8
 	"strconv"
9 9
 
10 10
 	"github.com/gorilla/mux"
11
-	"github.com/miniflux/miniflux/logger"
11
+	"miniflux.app/logger"
12 12
 )
13 13
 
14 14
 // Path returns the defined route based on given arguments.

+ 1
- 1
integration/doc.go View File

@@ -7,4 +7,4 @@
7 7
 Package integration implements API clients for third-party services.
8 8
 
9 9
 */
10
-package integration
10
+package integration // import "miniflux.app/integration"

+ 2
- 2
integration/instapaper/instapaper.go View File

@@ -2,13 +2,13 @@
2 2
 // Use of this source code is governed by the Apache 2.0
3 3
 // license that can be found in the LICENSE file.
4 4
 
5
-package instapaper
5
+package instapaper // import "miniflux.app/integration/instapaper"
6 6
 
7 7
 import (
8 8
 	"fmt"
9 9
 	"net/url"
10 10
 
11
-	"github.com/miniflux/miniflux/http/client"
11
+	"miniflux.app/http/client"
12 12
 )
13 13
 
14 14
 // Client represents an Instapaper client.

+ 9
- 9
integration/integration.go View File

@@ -2,17 +2,17 @@
2 2
 // Use of this source code is governed by the Apache 2.0
3 3
 // license that can be found in the LICENSE file.
4 4
 
5
-package integration
5
+package integration // import "miniflux.app/integration"
6 6
 
7 7
 import (
8
-	"github.com/miniflux/miniflux/config"
9
-	"github.com/miniflux/miniflux/integration/instapaper"
10
-	"github.com/miniflux/miniflux/integration/nunuxkeeper"
11
-	"github.com/miniflux/miniflux/integration/pinboard"
12
-	"github.com/miniflux/miniflux/integration/pocket"
13
-	"github.com/miniflux/miniflux/integration/wallabag"
14
-	"github.com/miniflux/miniflux/logger"
15
-	"github.com/miniflux/miniflux/model"
8
+	"miniflux.app/config"
9
+	"miniflux.app/integration/instapaper"
10
+	"miniflux.app/integration/nunuxkeeper"
11
+	"miniflux.app/integration/pinboard"
12
+	"miniflux.app/integration/pocket"
13
+	"miniflux.app/integration/wallabag"
14
+	"miniflux.app/logger"
15
+	"miniflux.app/model"
16 16
 )
17 17
 
18 18
 // SendEntry send the entry to the activated providers.

+ 2
- 2
integration/nunuxkeeper/nunuxkeeper.go View File

@@ -2,14 +2,14 @@
2 2
 // Use of this source code is governed by the Apache 2.0
3 3
 // license that can be found in the LICENSE file.
4 4
 
5
-package nunuxkeeper
5
+package nunuxkeeper // import "miniflux.app/integration/nunuxkeeper"
6 6
 
7 7
 import (
8 8
 	"fmt"
9 9
 	"net/url"
10 10
 	"path"
11 11
 
12
-	"github.com/miniflux/miniflux/http/client"
12
+	"miniflux.app/http/client"
13 13
 )
14 14
 
15 15
 // Document structure of a Nununx Keeper document

+ 2
- 2
integration/pinboard/pinboard.go View File

@@ -2,13 +2,13 @@
2 2
 // Use of this source code is governed by the Apache 2.0
3 3
 // license that can be found in the LICENSE file.
4 4
 
5
-package pinboard
5
+package pinboard // import "miniflux.app/integration/pinboard"
6 6
 
7 7
 import (
8 8
 	"fmt"
9 9
 	"net/url"
10 10
 
11
-	"github.com/miniflux/miniflux/http/client"
11
+	"miniflux.app/http/client"
12 12
 )
13 13
 
14 14
 // Client represents a Pinboard client.

+ 2
- 2
integration/pocket/connector.go View File

@@ -2,7 +2,7 @@
2 2
 // Use of this source code is governed by the Apache 2.0
3 3
 // license that can be found in the LICENSE file.
4 4
 
5
-package pocket
5
+package pocket // import "miniflux.app/integration/pocket"
6 6
 
7 7
 import (
8 8
 	"errors"
@@ -10,7 +10,7 @@ import (
10 10
 	"io/ioutil"
11 11
 	"net/url"
12 12
 
13
-	"github.com/miniflux/miniflux/http/client"
13
+	"miniflux.app/http/client"
14 14
 )
15 15
 
16 16
 // Connector manages the authorization flow with Pocket to get a personal access token.

+ 2
- 2
integration/pocket/pocket.go View File

@@ -2,12 +2,12 @@
2 2
 // Use of this source code is governed by the Apache 2.0
3 3
 // license that can be found in the LICENSE file.
4 4
 
5
-package pocket
5
+package pocket // import "miniflux.app/integration/pocket"
6 6
 
7 7
 import (
8 8
 	"fmt"
9 9
 
10
-	"github.com/miniflux/miniflux/http/client"
10
+	"miniflux.app/http/client"
11 11
 )
12 12
 
13 13
 // Client represents a Pocket client.

+ 2
- 2
integration/wallabag/wallabag.go View File

@@ -2,7 +2,7 @@
2 2
 // Use of this source code is governed by the Apache 2.0
3 3
 // license that can be found in the LICENSE file.
4 4
 
5
-package wallabag
5
+package wallabag // import "miniflux.app/integration/wallabag"
6 6
 
7 7
 import (
8 8
 	"encoding/json"
@@ -10,7 +10,7 @@ import (
10 10
 	"io"
11 11
 	"net/url"
12 12
 
13
-	"github.com/miniflux/miniflux/http/client"
13
+	"miniflux.app/http/client"
14 14
 )
15 15
 
16 16
 // Client represents a Wallabag client.

+ 1
- 1
locale/doc.go View File

@@ -7,4 +7,4 @@
7 7
 Package locale handles the internationalization of the application.
8 8
 
9 9
 */
10
-package locale
10
+package locale // import "miniflux.app/locale"

+ 1
- 1
locale/language.go View File

@@ -2,7 +2,7 @@
2 2
 // Use of this source code is governed by the Apache 2.0
3 3
 // license that can be found in the LICENSE file.
4 4
 
5
-package locale
5
+package locale // import "miniflux.app/locale"
6 6
 
7 7
 import "fmt"
8 8
 

+ 2
- 2
locale/locale.go View File

@@ -2,9 +2,9 @@
2 2
 // Use of this source code is governed by the Apache 2.0
3 3
 // license that can be found in the LICENSE file.
4 4
 
5
-package locale
5
+package locale // import "miniflux.app/locale"
6 6
 
7
-import "github.com/miniflux/miniflux/logger"
7
+import "miniflux.app/logger"
8 8
 
9 9
 // Translation is the translation mapping table.
10 10
 type Translation map[string]interface{}

+ 1
- 1
locale/locale_test.go View File

@@ -1,7 +1,7 @@
1 1
 // Copyright 2017 Frédéric Guillot. All rights reserved.
2 2
 // Use of this source code is governed by the Apache 2.0
3 3
 // license that can be found in the LICENSE file.
4
-package locale
4
+package locale // import "miniflux.app/locale"
5 5
 
6 6
 import "testing"
7 7
 

+ 1
- 1
locale/plurals.go View File

@@ -2,7 +2,7 @@
2 2
 // Use of this source code is governed by the Apache 2.0
3 3
 // license that can be found in the LICENSE file.
4 4
 
5
-package locale
5
+package locale // import "miniflux.app/locale"
6 6
 
7 7
 // See https://localization-guide.readthedocs.io/en/latest/l10n/pluralforms.html
8 8
 // And http://www.unicode.org/cldr/charts/29/supplemental/language_plural_rules.html

+ 1
- 1
locale/translations.go View File

@@ -1,6 +1,6 @@
1 1
 // Code generated by go generate; DO NOT EDIT.
2 2
 
3
-package locale
3
+package locale // import "miniflux.app/locale"
4 4
 
5 5
 var translations = map[string]string{
6 6
 	"de_DE": `{

+ 1
- 1
locale/translator.go View File

@@ -2,7 +2,7 @@
2 2
 // Use of this source code is governed by the Apache 2.0
3 3
 // license that can be found in the LICENSE file.
4 4
 
5
-package locale
5
+package locale // import "miniflux.app/locale"
6 6
 
7 7
 import (
8 8
 	"encoding/json"

+ 1
- 1
logger/doc.go View File

@@ -7,4 +7,4 @@
7 7
 Package logger handles application log messages with different levels.
8 8
 
9 9
 */
10
-package logger
10
+package logger // import "miniflux.app/logger"

+ 1
- 1
logger/logger.go View File

@@ -2,7 +2,7 @@
2 2
 // Use of this source code is governed by the Apache 2.0
3 3
 // license that can be found in the LICENSE file.
4 4
 
5
-package logger
5
+package logger // import "miniflux.app/logger"
6 6
 
7 7
 import (
8 8
 	"fmt"

+ 2
- 2
main.go View File

@@ -2,7 +2,7 @@
2 2
 // Use of this source code is governed by the Apache 2.0
3 3
 // license that can be found in the LICENSE file.
4 4
 
5
-package main
5
+package main // import "miniflux.app"
6 6
 
7 7
 //go:generate go run generate.go
8 8
 //go:generate gofmt -s -w database/sql.go
@@ -14,7 +14,7 @@ package main
14 14
 //go:generate gofmt -s -w locale/translations.go
15 15
 
16 16
 import (
17
-	"github.com/miniflux/miniflux/cli"
17
+	"miniflux.app/cli"
18 18
 )
19 19
 
20 20
 func main() {

+ 6
- 6
middleware/app_session.go View File

@@ -2,18 +2,18 @@
2 2
 // Use of this source code is governed by the Apache 2.0
3 3
 // license that can be found in the LICENSE file.
4 4
 
5
-package middleware
5
+package middleware // import "miniflux.app/middleware"
6 6
 
7 7
 import (
8 8
 	"context"
9 9
 	"errors"
10 10
 	"net/http"
11 11
 
12
-	"github.com/miniflux/miniflux/http/cookie"
13
-	"github.com/miniflux/miniflux/http/request"
14
-	"github.com/miniflux/miniflux/http/response/html"
15
-	"github.com/miniflux/miniflux/logger"
16
-	"github.com/miniflux/miniflux/model"
12
+	"miniflux.app/http/cookie"
13
+	"miniflux.app/http/request"
14
+	"miniflux.app/http/response/html"
15
+	"miniflux.app/logger"
16
+	"miniflux.app/model"
17 17
 )
18 18
 
19 19
 // AppSession handles application session middleware.

+ 3
- 3
middleware/basic_auth.go View File

@@ -2,14 +2,14 @@
2 2
 // Use of this source code is governed by the Apache 2.0
3 3
 // license that can be found in the LICENSE file.
4 4
 
5
-package middleware
5
+package middleware // import "miniflux.app/middleware"
6 6
 
7 7
 import (
8 8
 	"context"
9 9
 	"net/http"
10 10
 
11
-	"github.com/miniflux/miniflux/http/response/json"
12
-	"github.com/miniflux/miniflux/logger"
11
+	"miniflux.app/http/response/json"
12
+	"miniflux.app/logger"
13 13
 )
14 14
 
15 15
 // BasicAuth handles HTTP basic authentication.

+ 1
- 1
middleware/common_headers.go View File

@@ -2,7 +2,7 @@
2 2
 // Use of this source code is governed by the Apache 2.0
3 3
 // license that can be found in the LICENSE file.
4 4
 
5
-package middleware
5
+package middleware // import "miniflux.app/middleware"
6 6
 
7 7
 import (
8 8
 	"net/http"

+ 1
- 1
middleware/context_keys.go View File

@@ -2,7 +2,7 @@
2 2
 // Use of this source code is governed by the Apache 2.0
3 3
 // license that can be found in the LICENSE file.
4 4
 
5
-package middleware
5
+package middleware // import "miniflux.app/middleware"
6 6
 
7 7
 // ContextKey represents a context key.
8 8
 type ContextKey struct {

+ 3
- 3
middleware/fever.go View File

@@ -2,14 +2,14 @@
2 2
 // Use of this source code is governed by the Apache 2.0
3 3
 // license that can be found in the LICENSE file.
4 4
 
5
-package middleware
5
+package middleware // import "miniflux.app/middleware"
6 6
 
7 7
 import (
8 8
 	"context"
9 9
 	"net/http"
10 10
 
11
-	"github.com/miniflux/miniflux/http/response/json"
12
-	"github.com/miniflux/miniflux/logger"
11
+	"miniflux.app/http/response/json"
12
+	"miniflux.app/logger"
13 13
 )
14 14
 
15 15
 // FeverAuth handles Fever API authentication.

+ 1
- 1
middleware/header_config.go View File

@@ -2,7 +2,7 @@
2 2
 // Use of this source code is governed by the Apache 2.0
3 3
 // license that can be found in the LICENSE file.
4 4
 
5
-package middleware
5
+package middleware // import "miniflux.app/middleware"
6 6
 
7 7
 import (
8 8
 	"net/http"

+ 3
- 3
middleware/logging.go View File

@@ -2,13 +2,13 @@
2 2
 // Use of this source code is governed by the Apache 2.0
3 3
 // license that can be found in the LICENSE file.
4 4
 
5
-package middleware
5
+package middleware // import "miniflux.app/middleware"
6 6
 
7 7
 import (
8 8
 	"net/http"
9 9
 
10
-	"github.com/miniflux/miniflux/http/request"
11
-	"github.com/miniflux/miniflux/logger"
10
+	"miniflux.app/http/request"
11
+	"miniflux.app/logger"
12 12
 )
13 13
 
14 14
 // Logging logs the HTTP request.

+ 3
- 3
middleware/middleware.go View File

@@ -2,12 +2,12 @@
2 2
 // Use of this source code is governed by the Apache 2.0
3 3
 // license that can be found in the LICENSE file.
4 4
 
5
-package middleware
5
+package middleware // import "miniflux.app/middleware"
6 6
 
7 7
 import (
8 8
 	"github.com/gorilla/mux"
9
-	"github.com/miniflux/miniflux/config"
10
-	"github.com/miniflux/miniflux/storage"
9
+	"miniflux.app/config"
10
+	"miniflux.app/storage"
11 11
 )
12 12
 
13 13
 // Middleware handles different middleware handlers.

+ 7
- 7
middleware/user_session.go View File

@@ -2,18 +2,18 @@
2 2
 // Use of this source code is governed by the Apache 2.0
3 3
 // license that can be found in the LICENSE file.
4 4
 
5
-package middleware
5
+package middleware // import "miniflux.app/middleware"
6 6
 
7 7
 import (
8 8
 	"context"
9 9
 	"net/http"
10 10
 
11
-	"github.com/miniflux/miniflux/http/cookie"
12
-	"github.com/miniflux/miniflux/http/request"
13
-	"github.com/miniflux/miniflux/http/response"
14
-	"github.com/miniflux/miniflux/http/route"
15
-	"github.com/miniflux/miniflux/logger"
16
-	"github.com/miniflux/miniflux/model"
11
+	"miniflux.app/http/cookie"
12
+	"miniflux.app/http/request"
13
+	"miniflux.app/http/response"
14
+	"miniflux.app/http/route"
15
+	"miniflux.app/logger"
16
+	"miniflux.app/model"
17 17
 
18 18
 	"github.com/gorilla/mux"
19 19
 )

+ 1
- 1
model/app_session.go View File

@@ -2,7 +2,7 @@
2 2
 // Use of this source code is governed by the Apache 2.0
3 3
 // license that can be found in the LICENSE file.
4 4
 
5
-package model
5
+package model // import "miniflux.app/model"
6 6
 
7 7
 import (
8 8
 	"database/sql/driver"

+ 1
- 1
model/category.go View File

@@ -2,7 +2,7 @@
2 2
 // Use of this source code is governed by the Apache 2.0
3 3
 // license that can be found in the LICENSE file.
4 4
 
5
-package model
5
+package model // import "miniflux.app/model"
6 6
 
7 7
 import (
8 8
 	"errors"

+ 1
- 1
model/category_test.go View File

@@ -2,7 +2,7 @@
2 2
 // Use of this source code is governed by the Apache 2.0
3 3
 // license that can be found in the LICENSE file.
4 4
 
5
-package model
5
+package model // import "miniflux.app/model"
6 6
 
7 7
 import "testing"
8 8
 

+ 1
- 1
model/doc.go View File

@@ -7,4 +7,4 @@
7 7
 Package model contains all data structures used by the application.
8 8
 
9 9
 */
10
-package model
10
+package model // import "miniflux.app/model"

+ 1
- 1
model/enclosure.go View File

@@ -2,7 +2,7 @@
2 2
 // Use of this source code is governed by the Apache 2.0
3 3
 // license that can be found in the LICENSE file.
4 4
 
5
-package model
5
+package model // import "miniflux.app/model"
6 6
 
7 7
 // Enclosure represents an attachment.
8 8
 type Enclosure struct {

+ 1
- 1
model/entry.go View File

@@ -2,7 +2,7 @@
2 2
 // Use of this source code is governed by the Apache 2.0
3 3
 // license that can be found in the LICENSE file.
4 4
 
5
-package model
5
+package model // import "miniflux.app/model"
6 6
 
7 7
 import (
8 8
 	"fmt"

+ 1
- 1
model/entry_test.go View File

@@ -2,7 +2,7 @@
2 2
 // Use of this source code is governed by the Apache 2.0
3 3
 // license that can be found in the LICENSE file.
4 4
 
5
-package model
5
+package model // import "miniflux.app/model"
6 6
 
7 7
 import "testing"
8 8
 

+ 1
- 1
model/feed.go View File

@@ -2,7 +2,7 @@
2 2
 // Use of this source code is governed by the Apache 2.0
3 3
 // license that can be found in the LICENSE file.
4 4
 
5
-package model
5
+package model // import "miniflux.app/model"
6 6
 
7 7
 import (
8 8
 	"fmt"

+ 1
- 1
model/icon.go View File

@@ -2,7 +2,7 @@
2 2
 // Use of this source code is governed by the Apache 2.0
3 3
 // license that can be found in the LICENSE file.
4 4
 
5
-package model
5
+package model // import "miniflux.app/model"
6 6
 
7 7
 import (
8 8
 	"encoding/base64"

+ 1
- 1
model/integration.go View File

@@ -2,7 +2,7 @@
2 2
 // Use of this source code is governed by the Apache 2.0
3 3
 // license that can be found in the LICENSE file.
4 4
 
5
-package model
5
+package model // import "miniflux.app/model"
6 6
 
7 7
 // Integration represents user integration settings.
8 8
 type Integration struct {

+ 1
- 1
model/job.go View File

@@ -2,7 +2,7 @@
2 2
 // Use of this source code is governed by the Apache 2.0
3 3
 // license that can be found in the LICENSE file.
4 4
 
5
-package model
5
+package model // import "miniflux.app/model"
6 6
 
7 7
 // Job represents a payload sent to the processing queue.
8 8
 type Job struct {

+ 2
- 2
model/theme.go View File

@@ -2,9 +2,9 @@
2 2
 // Use of this source code is governed by the Apache 2.0
3 3
 // license that can be found in the LICENSE file.
4 4
 
5
-package model
5
+package model // import "miniflux.app/model"
6 6
 
7
-import "github.com/miniflux/miniflux/errors"
7
+import "miniflux.app/errors"
8 8
 
9 9
 // Themes returns the list of available themes.
10 10
 func Themes() map[string]string {

+ 1
- 1
model/theme_test.go View File

@@ -2,7 +2,7 @@
2 2
 // Use of this source code is governed by the Apache 2.0
3 3
 // license that can be found in the LICENSE file.
4 4
 
5
-package model
5
+package model // import "miniflux.app/model"
6 6
 
7 7
 import "testing"
8 8
 

+ 2
- 2
model/user.go View File

@@ -2,13 +2,13 @@
2 2
 // Use of this source code is governed by the Apache 2.0
3 3
 // license that can be found in the LICENSE file.
4 4
 
5
-package model
5
+package model // import "miniflux.app/model"
6 6
 
7 7
 import (
8 8
 	"errors"
9 9
 	"time"
10 10
 
11
-	"github.com/miniflux/miniflux/timezone"
11
+	"miniflux.app/timezone"
12 12
 )
13 13
 
14 14
 // User represents a user in the system.

+ 2
- 2
model/user_session.go View File

@@ -2,13 +2,13 @@
2 2
 // Use of this source code is governed by the Apache 2.0
3 3
 // license that can be found in the LICENSE file.
4 4
 
5
-package model
5
+package model // import "miniflux.app/model"
6 6
 
7 7
 import (
8 8
 	"fmt"
9 9
 	"time"
10 10
 
11
-	"github.com/miniflux/miniflux/timezone"
11
+	"miniflux.app/timezone"
12 12
 )
13 13
 
14 14
 // UserSession represents a user session in the system.

+ 1
- 1
model/user_test.go View File

@@ -2,7 +2,7 @@
2 2
 // Use of this source code is governed by the Apache 2.0
3 3
 // license that can be found in the LICENSE file.
4 4
 
5
-package model
5
+package model // import "miniflux.app/model"
6 6
 
7 7
 import "testing"
8 8
 

+ 1
- 1
oauth2/doc.go View File

@@ -7,4 +7,4 @@
7 7
 Package oauth2 abstracts different OAuth2 providers.
8 8
 
9 9
 */
10
-package oauth2
10
+package oauth2 // import "miniflux.app/oauth2"

+ 1
- 1
oauth2/google.go View File

@@ -2,7 +2,7 @@
2 2
 // Use of this source code is governed by the Apache 2.0
3 3
 // license that can be found in the LICENSE file.
4 4
 
5
-package oauth2
5
+package oauth2 // import "miniflux.app/oauth2"
6 6
 
7 7
 import (
8 8
 	"context"

+ 0
- 0
oauth2/manager.go View File


Some files were not shown because too many files changed in this diff

Loading…
Cancel
Save