mirror of
https://github.com/terorie/od-database-crawler.git
synced 2025-12-13 15:19:03 +00:00
Bits of ODDB API
This commit is contained in:
23
main.go
Normal file
23
main.go
Normal file
@@ -0,0 +1,23 @@
|
||||
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)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user