Skip to content

Commit

Permalink
Update go package module version to v2 (#226)
Browse files Browse the repository at this point in the history
  • Loading branch information
LucaBernstein authored Aug 19, 2023
1 parent 31fa5ed commit 9c57c5c
Show file tree
Hide file tree
Showing 76 changed files with 159 additions and 159 deletions.
2 changes: 1 addition & 1 deletion api/admin/logs.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"strconv"
"time"

"github.com/LucaBernstein/beancount-bot-tg/db"
"github.com/LucaBernstein/beancount-bot-tg/v2/db"
"github.com/gin-gonic/gin"
)

Expand Down
6 changes: 3 additions & 3 deletions api/admin/logs_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import (
"net/http/httptest"
"testing"

"github.com/LucaBernstein/beancount-bot-tg/api/admin"
"github.com/LucaBernstein/beancount-bot-tg/api/helpers/apiTest"
"github.com/LucaBernstein/beancount-bot-tg/bot/botTest"
"github.com/LucaBernstein/beancount-bot-tg/v2/api/admin"
"github.com/LucaBernstein/beancount-bot-tg/v2/api/helpers/apiTest"
"github.com/LucaBernstein/beancount-bot-tg/v2/bot/botTest"
"github.com/gin-gonic/gin"
"github.com/stretchr/testify/assert"
)
Expand Down
4 changes: 2 additions & 2 deletions api/admin/router.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package admin

import (
"github.com/LucaBernstein/beancount-bot-tg/api/helpers"
"github.com/LucaBernstein/beancount-bot-tg/bot"
"github.com/LucaBernstein/beancount-bot-tg/v2/api/helpers"
"github.com/LucaBernstein/beancount-bot-tg/v2/bot"
"github.com/gin-gonic/gin"
)

Expand Down
2 changes: 1 addition & 1 deletion api/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"net/http"
"strings"

"github.com/LucaBernstein/beancount-bot-tg/helpers"
"github.com/LucaBernstein/beancount-bot-tg/v2/helpers"
"github.com/gin-gonic/gin"
"gopkg.in/telebot.v3"
)
Expand Down
8 changes: 4 additions & 4 deletions api/config/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ import (
"strings"
"testing"

"github.com/LucaBernstein/beancount-bot-tg/api/config"
"github.com/LucaBernstein/beancount-bot-tg/api/helpers/apiTest"
"github.com/LucaBernstein/beancount-bot-tg/bot/botTest"
"github.com/LucaBernstein/beancount-bot-tg/db"
"github.com/LucaBernstein/beancount-bot-tg/v2/api/config"
"github.com/LucaBernstein/beancount-bot-tg/v2/api/helpers/apiTest"
"github.com/LucaBernstein/beancount-bot-tg/v2/bot/botTest"
"github.com/LucaBernstein/beancount-bot-tg/v2/db"
"github.com/gin-gonic/gin"
"github.com/stretchr/testify/assert"
)
Expand Down
4 changes: 2 additions & 2 deletions api/config/router.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package config

import (
"github.com/LucaBernstein/beancount-bot-tg/api/helpers"
"github.com/LucaBernstein/beancount-bot-tg/bot"
"github.com/LucaBernstein/beancount-bot-tg/v2/api/helpers"
"github.com/LucaBernstein/beancount-bot-tg/v2/bot"
"github.com/gin-gonic/gin"
)

Expand Down
2 changes: 1 addition & 1 deletion api/cors.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"log"
"strings"

"github.com/LucaBernstein/beancount-bot-tg/helpers"
"github.com/LucaBernstein/beancount-bot-tg/v2/helpers"
"github.com/gin-contrib/cors"
"github.com/gin-gonic/gin"
)
Expand Down
4 changes: 2 additions & 2 deletions api/health/monitoring.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"fmt"
"os"

"github.com/LucaBernstein/beancount-bot-tg/bot"
"github.com/LucaBernstein/beancount-bot-tg/helpers"
"github.com/LucaBernstein/beancount-bot-tg/v2/bot"
"github.com/LucaBernstein/beancount-bot-tg/v2/helpers"
"github.com/gin-gonic/gin"
)

Expand Down
6 changes: 3 additions & 3 deletions api/health/monitoring_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ package health_test
import (
"testing"

"github.com/LucaBernstein/beancount-bot-tg/bot"
"github.com/LucaBernstein/beancount-bot-tg/db"
"github.com/LucaBernstein/beancount-bot-tg/helpers"
"github.com/LucaBernstein/beancount-bot-tg/v2/bot"
"github.com/LucaBernstein/beancount-bot-tg/v2/db"
"github.com/LucaBernstein/beancount-bot-tg/v2/helpers"
"gopkg.in/telebot.v3"
)

Expand Down
10 changes: 5 additions & 5 deletions api/helpers/apiTest/mockBotApiUser.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ package apiTest
import (
"testing"

"github.com/LucaBernstein/beancount-bot-tg/bot"
"github.com/LucaBernstein/beancount-bot-tg/bot/botTest"
"github.com/LucaBernstein/beancount-bot-tg/db"
"github.com/LucaBernstein/beancount-bot-tg/db/crud"
"github.com/LucaBernstein/beancount-bot-tg/helpers"
"github.com/LucaBernstein/beancount-bot-tg/v2/bot"
"github.com/LucaBernstein/beancount-bot-tg/v2/bot/botTest"
"github.com/LucaBernstein/beancount-bot-tg/v2/db"
"github.com/LucaBernstein/beancount-bot-tg/v2/db/crud"
"github.com/LucaBernstein/beancount-bot-tg/v2/helpers"
"gopkg.in/telebot.v3"
)

Expand Down
2 changes: 1 addition & 1 deletion api/helpers/chatId.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"net/http"
"strings"

"github.com/LucaBernstein/beancount-bot-tg/bot"
"github.com/LucaBernstein/beancount-bot-tg/v2/bot"
"github.com/gin-gonic/gin"
"gopkg.in/telebot.v3"
)
Expand Down
4 changes: 2 additions & 2 deletions api/helpers/chatId_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"net/http/httptest"
"testing"

"github.com/LucaBernstein/beancount-bot-tg/api/helpers"
"github.com/LucaBernstein/beancount-bot-tg/api/helpers/apiTest"
"github.com/LucaBernstein/beancount-bot-tg/v2/api/helpers"
"github.com/LucaBernstein/beancount-bot-tg/v2/api/helpers/apiTest"
"github.com/gin-gonic/gin"
"github.com/stretchr/testify/assert"
)
Expand Down
16 changes: 8 additions & 8 deletions api/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ package api
import (
"log"

"github.com/LucaBernstein/beancount-bot-tg/api/admin"
"github.com/LucaBernstein/beancount-bot-tg/api/config"
"github.com/LucaBernstein/beancount-bot-tg/api/suggestions"
"github.com/LucaBernstein/beancount-bot-tg/api/health"
"github.com/LucaBernstein/beancount-bot-tg/api/token"
"github.com/LucaBernstein/beancount-bot-tg/api/transactions"
"github.com/LucaBernstein/beancount-bot-tg/bot"
"github.com/LucaBernstein/beancount-bot-tg/helpers"
"github.com/LucaBernstein/beancount-bot-tg/v2/api/admin"
"github.com/LucaBernstein/beancount-bot-tg/v2/api/config"
"github.com/LucaBernstein/beancount-bot-tg/v2/api/health"
"github.com/LucaBernstein/beancount-bot-tg/v2/api/suggestions"
"github.com/LucaBernstein/beancount-bot-tg/v2/api/token"
"github.com/LucaBernstein/beancount-bot-tg/v2/api/transactions"
"github.com/LucaBernstein/beancount-bot-tg/v2/bot"
"github.com/LucaBernstein/beancount-bot-tg/v2/helpers"
"github.com/gin-gonic/gin"
"github.com/mandrigin/gin-spa/spa"
)
Expand Down
2 changes: 1 addition & 1 deletion api/suggestions/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"net/http"
"strings"

"github.com/LucaBernstein/beancount-bot-tg/api/helpers"
"github.com/LucaBernstein/beancount-bot-tg/v2/api/helpers"
"github.com/gin-gonic/gin"
"gopkg.in/telebot.v3"
)
Expand Down
4 changes: 2 additions & 2 deletions api/suggestions/router.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package suggestions

import (
"github.com/LucaBernstein/beancount-bot-tg/api/helpers"
"github.com/LucaBernstein/beancount-bot-tg/bot"
"github.com/LucaBernstein/beancount-bot-tg/v2/api/helpers"
"github.com/LucaBernstein/beancount-bot-tg/v2/bot"
"github.com/gin-gonic/gin"
)

Expand Down
2 changes: 1 addition & 1 deletion api/token/grant.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"net/http"
"strconv"

"github.com/LucaBernstein/beancount-bot-tg/helpers"
"github.com/LucaBernstein/beancount-bot-tg/v2/helpers"
"github.com/gin-gonic/gin"
)

Expand Down
2 changes: 1 addition & 1 deletion api/token/router.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package token

import (
"github.com/LucaBernstein/beancount-bot-tg/bot"
"github.com/LucaBernstein/beancount-bot-tg/v2/bot"
"github.com/gin-gonic/gin"
)

Expand Down
4 changes: 2 additions & 2 deletions api/token/verification.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"net/http"
"strconv"

"github.com/LucaBernstein/beancount-bot-tg/bot"
"github.com/LucaBernstein/beancount-bot-tg/helpers"
"github.com/LucaBernstein/beancount-bot-tg/v2/bot"
"github.com/LucaBernstein/beancount-bot-tg/v2/helpers"
"github.com/gin-gonic/gin"
)

Expand Down
12 changes: 6 additions & 6 deletions api/token/verification_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ import (
"strings"
"testing"

"github.com/LucaBernstein/beancount-bot-tg/api/token"
"github.com/LucaBernstein/beancount-bot-tg/bot"
"github.com/LucaBernstein/beancount-bot-tg/bot/botTest"
"github.com/LucaBernstein/beancount-bot-tg/db"
"github.com/LucaBernstein/beancount-bot-tg/db/crud"
"github.com/LucaBernstein/beancount-bot-tg/helpers"
"github.com/LucaBernstein/beancount-bot-tg/v2/api/token"
"github.com/LucaBernstein/beancount-bot-tg/v2/bot"
"github.com/LucaBernstein/beancount-bot-tg/v2/bot/botTest"
"github.com/LucaBernstein/beancount-bot-tg/v2/db"
"github.com/LucaBernstein/beancount-bot-tg/v2/db/crud"
"github.com/LucaBernstein/beancount-bot-tg/v2/helpers"
"github.com/gin-gonic/gin"
"github.com/stretchr/testify/assert"
"gopkg.in/telebot.v3"
Expand Down
2 changes: 1 addition & 1 deletion api/transactions/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"net/http"
"strconv"

"github.com/LucaBernstein/beancount-bot-tg/api/helpers"
"github.com/LucaBernstein/beancount-bot-tg/v2/api/helpers"
"github.com/gin-gonic/gin"
"gopkg.in/telebot.v3"
)
Expand Down
10 changes: 5 additions & 5 deletions api/transactions/list_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ import (
"net/http/httptest"
"testing"

"github.com/LucaBernstein/beancount-bot-tg/api/transactions"
"github.com/LucaBernstein/beancount-bot-tg/bot"
"github.com/LucaBernstein/beancount-bot-tg/db"
"github.com/LucaBernstein/beancount-bot-tg/db/crud"
"github.com/LucaBernstein/beancount-bot-tg/helpers"
"github.com/LucaBernstein/beancount-bot-tg/v2/api/transactions"
"github.com/LucaBernstein/beancount-bot-tg/v2/bot"
"github.com/LucaBernstein/beancount-bot-tg/v2/db"
"github.com/LucaBernstein/beancount-bot-tg/v2/db/crud"
"github.com/LucaBernstein/beancount-bot-tg/v2/helpers"
"github.com/gin-gonic/gin"
"github.com/stretchr/testify/assert"
"gopkg.in/telebot.v3"
Expand Down
4 changes: 2 additions & 2 deletions api/transactions/router.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package transactions

import (
"github.com/LucaBernstein/beancount-bot-tg/api/helpers"
"github.com/LucaBernstein/beancount-bot-tg/bot"
"github.com/LucaBernstein/beancount-bot-tg/v2/api/helpers"
"github.com/LucaBernstein/beancount-bot-tg/v2/bot"
"github.com/gin-gonic/gin"
)

Expand Down
34 changes: 17 additions & 17 deletions api/ui/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,10 @@ packages:
dependency: transitive
description:
name: ffi
sha256: ed5337a5660c506388a9f012be0288fb38b49020ce2b45fe1f8b8323fe429f99
sha256: "7bf0adc28a23d395f19f3f1eb21dd7cfd1dd9f8e1c50051c069122e6853bc878"
url: "https://pub.dev"
source: hosted
version: "2.0.2"
version: "2.1.0"
file:
dependency: transitive
description:
Expand Down Expand Up @@ -100,10 +100,10 @@ packages:
dependency: "direct main"
description:
name: go_router
sha256: b3cadd2cd59a4103fd5f6bc572ca75111264698784e927aa471921c3477d5475
sha256: "2aa884667eeda3a1c461f31e72af1f77984ab0f29450d8fb12ec1f7bc53eea14"
url: "https://pub.dev"
source: hosted
version: "10.0.0"
version: "10.1.0"
http:
dependency: "direct main"
description:
Expand Down Expand Up @@ -180,34 +180,34 @@ packages:
dependency: transitive
description:
name: path_provider_linux
sha256: ffbb8cc9ed2c9ec0e4b7a541e56fd79b138e8f47d2fb86815f15358a349b3b57
sha256: ba2b77f0c52a33db09fc8caf85b12df691bf28d983e84cf87ff6d693cfa007b3
url: "https://pub.dev"
source: hosted
version: "2.1.11"
version: "2.2.0"
path_provider_platform_interface:
dependency: transitive
description:
name: path_provider_platform_interface
sha256: "57585299a729335f1298b43245842678cb9f43a6310351b18fb577d6e33165ec"
sha256: bced5679c7df11190e1ddc35f3222c858f328fff85c3942e46e7f5589bf9eb84
url: "https://pub.dev"
source: hosted
version: "2.0.6"
version: "2.1.0"
path_provider_windows:
dependency: transitive
description:
name: path_provider_windows
sha256: "1cb68ba4cd3a795033de62ba1b7b4564dace301f952de6bfb3cd91b202b6ee96"
sha256: ee0e0d164516b90ae1f970bdf29f726f1aa730d7cfc449ecc74c495378b705da
url: "https://pub.dev"
source: hosted
version: "2.1.7"
version: "2.2.0"
platform:
dependency: transitive
description:
name: platform
sha256: "4a451831508d7d6ca779f7ac6e212b4023dd5a7d08a27a63da33756410e32b76"
sha256: "57c07bf82207aee366dfaa3867b3164e4f03a238a461a11b0e8a3a510d51203d"
url: "https://pub.dev"
source: hosted
version: "3.1.0"
version: "3.1.1"
plugin_platform_interface:
dependency: transitive
description:
Expand Down Expand Up @@ -236,10 +236,10 @@ packages:
dependency: transitive
description:
name: shared_preferences_foundation
sha256: f39696b83e844923b642ce9dd4bd31736c17e697f6731a5adf445b1274cf3cd4
sha256: d29753996d8eb8f7619a1f13df6ce65e34bc107bef6330739ed76f18b22310ef
url: "https://pub.dev"
source: hosted
version: "2.3.2"
version: "2.3.3"
shared_preferences_linux:
dependency: transitive
description:
Expand Down Expand Up @@ -353,10 +353,10 @@ packages:
dependency: transitive
description:
name: xdg_directories
sha256: e0b1147eec179d3911f1f19b59206448f78195ca1d20514134e10641b7d7fbff
sha256: f0c26453a2d47aa4c2570c6a033246a3fc62da2fe23c7ffdd0a7495086dc0247
url: "https://pub.dev"
source: hosted
version: "1.0.1"
version: "1.0.2"
sdks:
dart: ">=3.0.1 <4.0.0"
flutter: ">=3.3.0"
flutter: ">=3.7.0"
2 changes: 1 addition & 1 deletion bot/botTest/mockBot.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package botTest
import (
"time"

"github.com/LucaBernstein/beancount-bot-tg/helpers"
"github.com/LucaBernstein/beancount-bot-tg/v2/helpers"
tb "gopkg.in/telebot.v3"
)

Expand Down
4 changes: 2 additions & 2 deletions bot/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (
"strings"
"time"

"github.com/LucaBernstein/beancount-bot-tg/db/crud"
"github.com/LucaBernstein/beancount-bot-tg/helpers"
"github.com/LucaBernstein/beancount-bot-tg/v2/db/crud"
"github.com/LucaBernstein/beancount-bot-tg/v2/helpers"
tb "gopkg.in/telebot.v3"
)

Expand Down
6 changes: 3 additions & 3 deletions bot/config_account_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ package bot_test
import (
"testing"

"github.com/LucaBernstein/beancount-bot-tg/bot"
"github.com/LucaBernstein/beancount-bot-tg/db"
"github.com/LucaBernstein/beancount-bot-tg/db/crud"
"github.com/LucaBernstein/beancount-bot-tg/v2/bot"
"github.com/LucaBernstein/beancount-bot-tg/v2/db"
"github.com/LucaBernstein/beancount-bot-tg/v2/db/crud"
"gopkg.in/telebot.v3"
)

Expand Down
Loading

0 comments on commit 9c57c5c

Please sign in to comment.