mirror of
https://github.com/terorie/od-database-crawler.git
synced 2025-04-18 18:06:45 +00:00
24 lines
303 B
Go
24 lines
303 B
Go
package main
|
|
|
|
import (
|
|
"github.com/sirupsen/logrus"
|
|
"github.com/spf13/viper"
|
|
)
|
|
|
|
type Config struct {
|
|
ServerUrl string
|
|
Token string
|
|
}
|
|
|
|
|
|
func main2() {
|
|
var err error
|
|
|
|
viper.SetConfigName("config.yml")
|
|
viper.SetConfigType("yml")
|
|
err = viper.ReadInConfig()
|
|
if err != nil {
|
|
logrus.Fatal(err)
|
|
}
|
|
}
|