add struct
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Владимир Фёдоров 2023-04-06 17:36:57 +07:00
parent b771745c47
commit 64345c9350
13 changed files with 7 additions and 34 deletions

View File

@ -6,7 +6,7 @@ steps:
- name: build
image: golang
commands:
- go build -o valera_tg_bot main.go
- go build -o valera_tg_bot cmd/valera/main.go
- name: test
image: golang

View File

@ -1,12 +0,0 @@
{
"configurations": [
{
"type": "go",
"name": "run",
"goExecPath": "/usr/local/go/bin/go",
"buildParams": [
"$PROJECT_DIR$/main.go",
],
},
]
}

15
.vscode/launch.json vendored
View File

@ -1,15 +0,0 @@
{
// Используйте IntelliSense, чтобы узнать о возможных атрибутах.
// Наведите указатель мыши, чтобы просмотреть описания существующих атрибутов.
// Для получения дополнительной информации посетите: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "run",
"type": "go",
"request": "launch",
"mode": "debug",
"program": "${workspaceFolder}\\main.go"
}
]
}

View File

@ -9,10 +9,10 @@ import (
"os"
"strconv"
"strings"
"valera/calories"
"valera/commands"
"valera/db"
"valera/pause"
"valera/internal/calories"
"valera/internal/commands"
"valera/internal/db"
"valera/internal/pause"
tgbot "github.com/go-telegram-bot-api/telegram-bot-api"
"github.com/umputun/go-flags"
@ -28,7 +28,7 @@ var (
)
const (
version = "v1.6.0"
version = "v1.6.1"
)
type Opts struct {

View File

@ -4,7 +4,7 @@ import (
"context"
"log"
"time"
"valera/config"
"valera/internal/config"
"go.mongodb.org/mongo-driver/bson"
"go.mongodb.org/mongo-driver/mongo"