From b34256a522c7821f61bc0abe4786eb1d3e59681d Mon Sep 17 00:00:00 2001 From: stuzer05 Date: Fri, 5 Apr 2024 15:48:12 +0300 Subject: [PATCH] Rename package --- .gitignore | 3 ++- go.mod | 2 +- http.go | 2 +- webhook.go | 4 ++-- 4 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.gitignore b/.gitignore index 46d4fe4..39f334a 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ /.idea /main /.env -/config.json \ No newline at end of file +/config.json +/monobank-firefly-bot \ No newline at end of file diff --git a/go.mod b/go.mod index dc46ba8..c3ceea6 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module main +module stuzer.link/monobank-firefly-bot go 1.22.1 diff --git a/http.go b/http.go index b8247b4..fffe899 100644 --- a/http.go +++ b/http.go @@ -3,8 +3,8 @@ package main import ( "encoding/json" "io" - monobank "main/monobank/api/webhook/models" "net/http" + monobank "stuzer.link/monobank-firefly-bot/monobank/api/webhook/models" ) func readResponseBody(r *http.Request) (monobank.Transaction, error) { diff --git a/webhook.go b/webhook.go index 138d1a0..7bfc501 100644 --- a/webhook.go +++ b/webhook.go @@ -6,13 +6,13 @@ import ( "encoding/json" "fmt" "github.com/antihax/optional" - "main/firefly3" - monobank "main/monobank/api/webhook/models" "math" "net/http" "os" "slices" "strconv" + "stuzer.link/monobank-firefly-bot/firefly3" + monobank "stuzer.link/monobank-firefly-bot/monobank/api/webhook/models" "time" )