Skip to content

Commit 96e3b05

Browse files
committed
restructuring
1 parent c229ed1 commit 96e3b05

17 files changed

+63
-5
lines changed

.github/renovate.json

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"extends": [
3+
"github>dal-go/dalgo-renovate-config"
4+
]
5+
}

.github/workflows/ci.yml

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Go CI
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
tags:
8+
- 'v[0-9]+\.[0-9]+\.[0-9]+'
9+
pull_request:
10+
branches:
11+
- main
12+
13+
jobs:
14+
15+
go_ci:
16+
runs-on: ubuntu-latest
17+
18+
steps:
19+
- name: Checkout code
20+
uses: actions/checkout@v3
21+
22+
- name: Install Go
23+
uses: actions/setup-go@v4
24+
with:
25+
go-version: '^1.20'
26+
27+
- uses: strongo/[email protected]

.travis.yml

-4
This file was deleted.

go.mod

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,27 @@
1-
module github.com/strongo/bots-api-telegram
1+
module github.com/bots-go-framework/bots-api-telegram
22

33
go 1.20
44

55
require (
66
github.com/pquerna/ffjson v0.0.0-20190930134022-aa0246cd15f7
7+
github.com/stretchr/testify v1.8.2
78
github.com/strongo/bots-framework v0.9.6
89
github.com/strongo/log v0.0.1
910
github.com/technoweenie/multipartstreamer v1.0.1
1011
)
1112

1213
require (
14+
github.com/davecgh/go-spew v1.1.1 // indirect
1315
github.com/julienschmidt/httprouter v1.3.0 // indirect
1416
github.com/kr/pretty v0.3.1 // indirect
1517
github.com/pkg/errors v0.9.1 // indirect
18+
github.com/pmezard/go-difflib v1.0.0 // indirect
1619
github.com/satori/go.uuid v1.2.0 // indirect
1720
github.com/strongo/app v0.0.1 // indirect
1821
github.com/strongo/dalgo v0.0.26 // indirect
1922
github.com/strongo/emoji v0.0.1 // indirect
2023
github.com/strongo/gamp v0.0.0-20180514004759-fdf2ce90b6b9 // indirect
2124
github.com/strongo/random v0.0.1 // indirect
2225
github.com/strongo/slice v0.0.3 // indirect
26+
gopkg.in/yaml.v3 v3.0.1 // indirect
2327
)

go.sum

+12
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E=
2+
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
23
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
4+
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
35
github.com/julienschmidt/httprouter v1.3.0 h1:U0609e9tgbseu3rBINet9P48AI/D3oJs4dN7jwJOQ1U=
46
github.com/julienschmidt/httprouter v1.3.0/go.mod h1:JR6WtHb+2LUe8TCKY3cZOxFyyO8IZAc4RVcycCCAKdM=
57
github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE=
@@ -10,13 +12,20 @@ github.com/pkg/diff v0.0.0-20210226163009-20ebb0f2a09e/go.mod h1:pJLUxLENpZxwdsK
1012
github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4=
1113
github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
1214
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
15+
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
1316
github.com/pquerna/ffjson v0.0.0-20190930134022-aa0246cd15f7 h1:xoIK0ctDddBMnc74udxJYBqlo9Ylnsp1waqjLsnef20=
1417
github.com/pquerna/ffjson v0.0.0-20190930134022-aa0246cd15f7/go.mod h1:YARuvh7BUWHNhzDq2OM5tzR2RiCcN2D7sapiKyCel/M=
1518
github.com/rogpeppe/go-internal v1.9.0 h1:73kH8U+JUqXU8lRuOHeVHaa/SZPifC7BkcraZVejAe8=
1619
github.com/rogpeppe/go-internal v1.9.0/go.mod h1:WtVeX8xhTBvf0smdhujwtBcq4Qrzq/fJaraNFVN+nFs=
1720
github.com/satori/go.uuid v1.2.0 h1:0uYX9dsZ2yD7q2RtLRtPSdGDWzjeM3TbMJP9utgA0ww=
1821
github.com/satori/go.uuid v1.2.0/go.mod h1:dA0hQrYB0VpLJoorglMZABFdXlWrHn1NEOzdhQKdks0=
22+
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
23+
github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw=
24+
github.com/stretchr/objx v0.5.0/go.mod h1:Yh+to48EsGEfYuaHDzXPcE3xhTkx73EhmCGUpEOglKo=
25+
github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
26+
github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU=
1927
github.com/stretchr/testify v1.8.2 h1:+h33VjcLVPDHtOdpUCuF+7gSuG3yGIftsP1YvFihtJ8=
28+
github.com/stretchr/testify v1.8.2/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4=
2029
github.com/strongo/app v0.0.1 h1:fwYFKd9g0aygHT6X17yGXSZ+ETY++87a2P4lCuW5V4I=
2130
github.com/strongo/app v0.0.1/go.mod h1:H9omqnFecxlU6LPVBqq9C0/Wt0OfD7x8axWGr7E2v7Q=
2231
github.com/strongo/bots-framework v0.9.6 h1:vlDa86jDLlFl+56lB0ACqiF8eW1pPEeByEa05ie7CZQ=
@@ -35,5 +44,8 @@ github.com/strongo/slice v0.0.3 h1:FAVwvDf1CqEoUZB76/WFd/oa84gXHYOuDdGG9HgMmRg=
3544
github.com/strongo/slice v0.0.3/go.mod h1:Ix1x0A2+4Mw7WJnsaR8hPHLYtGZ9wp29fIp8X4btgE8=
3645
github.com/technoweenie/multipartstreamer v1.0.1 h1:XRztA5MXiR1TIRHxH2uNxXxaIkKQDeX7m2XsSOlQEnM=
3746
github.com/technoweenie/multipartstreamer v1.0.1/go.mod h1:jNVxdtShOxzAsukZwTSw6MDx5eUJoiEBsSvzDU9uzog=
47+
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
3848
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk=
49+
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
3950
gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
51+
gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=

bot.go renamed to tgbotapi/bot.go

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

version.go

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
package bots_api_telegram
2+
3+
// Version of the module
4+
const Version = "0.0.1"

version_test.go

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
package bots_api_telegram
2+
3+
import (
4+
"github.com/stretchr/testify/assert"
5+
"testing"
6+
)
7+
8+
func TestVersion(t *testing.T) {
9+
assert.NotEmptyf(t, Version, "Version is empty")
10+
}

0 commit comments

Comments
 (0)