2019-09-03 23:05:07 +02:00
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
|
|
|
"fmt"
|
2020-02-04 20:16:42 +01:00
|
|
|
"strconv"
|
|
|
|
"time"
|
2019-09-03 23:05:07 +02:00
|
|
|
|
|
|
|
"framagit.org/pksl/paddockpass/api"
|
|
|
|
"framagit.org/pksl/paddockpass/db"
|
|
|
|
_ "github.com/go-sql-driver/mysql"
|
|
|
|
)
|
|
|
|
|
|
|
|
func main() {
|
2020-02-04 20:16:42 +01:00
|
|
|
year := time.Now().Year()
|
|
|
|
fmt.Println("Hello there! It is", year)
|
2019-09-03 23:05:07 +02:00
|
|
|
db.InitDB()
|
2020-02-04 20:16:42 +01:00
|
|
|
api.GetSeasonFromErgast(strconv.Itoa(year))
|
|
|
|
api.GetDriversFromErgast(strconv.Itoa(year))
|
2019-09-03 23:05:07 +02:00
|
|
|
}
|