fix
This commit is contained in:
parent
50950c0bef
commit
0670f2c9c4
4
main.go
4
main.go
@ -6,7 +6,7 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"database/sql"
|
"database/sql"
|
||||||
_ "github.com/go-sql-driver/mysql"
|
_ "github.com/go-sql-driver/mysql"
|
||||||
|
"gopkg.in/gcfg.v1"
|
||||||
tb "gopkg.in/tucnak/telebot.v2"
|
tb "gopkg.in/tucnak/telebot.v2"
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -51,7 +51,7 @@ func main() {
|
|||||||
// Parsing config
|
// Parsing config
|
||||||
flag.Parse()
|
flag.Parse()
|
||||||
|
|
||||||
err = gcfg.ReadFileInto(&cfg, *config)
|
err := gcfg.ReadFileInto(&cfg, *config)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatalf("Failed to parse gcfg data: %s", err)
|
log.Fatalf("Failed to parse gcfg data: %s", err)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user