ripple-api/main.go
2016-04-03 19:59:27 +02:00

24 lines
361 B
Go

package main
import (
"database/sql"
"log"
// Golint pls dont break balls
_ "github.com/go-sql-driver/mysql"
"github.com/osuripple/api/app"
"github.com/osuripple/api/common"
)
func main() {
conf, halt := common.Load()
if halt {
return
}
db, err := sql.Open(conf.DatabaseType, conf.DSN)
if err != nil {
log.Fatal(err)
}
app.Start(conf, db)
}