Bits of ODDB API

This commit is contained in:
Richard Patel
2018-10-27 04:10:08 +02:00
parent dc816146cc
commit abf069f946
5 changed files with 300 additions and 0 deletions

23
main.go Normal file
View 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)
}
}