This commit is contained in:
shoopea 2019-05-02 18:14:07 +08:00
parent 50950c0bef
commit 0670f2c9c4

View File

@ -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)
} }