main.go 291 B

12345678910111213141516
  1. package main
  2. import (
  3. "github.com/librespeed/speedtest/config"
  4. "github.com/librespeed/speedtest/database"
  5. "github.com/librespeed/speedtest/web"
  6. log "github.com/sirupsen/logrus"
  7. )
  8. func main() {
  9. conf := config.Load()
  10. database.SetDBInfo(&conf)
  11. log.Fatal(web.ListenAndServe(&conf))
  12. }