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 - name: build
image: golang image: golang
commands: commands:
- go build -o valera_tg_bot main.go - go build -o valera_tg_bot cmd/valera/main.go
- name: test - name: test
image: golang 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" "os"
"strconv" "strconv"
"strings" "strings"
"valera/calories" "valera/internal/calories"
"valera/commands" "valera/internal/commands"
"valera/db" "valera/internal/db"
"valera/pause" "valera/internal/pause"
tgbot "github.com/go-telegram-bot-api/telegram-bot-api" tgbot "github.com/go-telegram-bot-api/telegram-bot-api"
"github.com/umputun/go-flags" "github.com/umputun/go-flags"
@ -28,7 +28,7 @@ var (
) )
const ( const (
version = "v1.6.0" version = "v1.6.1"
) )
type Opts struct { type Opts struct {

View File

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