7055f0c9b2
update Readme with shields
33 lines
613 B
Go
33 lines
613 B
Go
package main
|
|
|
|
import (
|
|
"fmt"
|
|
|
|
"github.com/schrej/wings/api"
|
|
"github.com/schrej/wings/config"
|
|
"github.com/schrej/wings/tools"
|
|
log "github.com/sirupsen/logrus"
|
|
)
|
|
|
|
const (
|
|
// Version of pterodactyld
|
|
Version = "0.0.1-alpha"
|
|
)
|
|
|
|
func main() {
|
|
fmt.Println("Loading configuration")
|
|
if err := config.LoadConfiguration(); err != nil {
|
|
log.WithError(err).Fatal("Failed to find configuration file")
|
|
}
|
|
tools.ConfigureLogging()
|
|
|
|
log.Info("Starting wings.go version ", Version)
|
|
|
|
// Load configuration
|
|
log.Info("Loading configuration...")
|
|
|
|
log.Info("Starting api webserver")
|
|
api := api.NewAPI()
|
|
api.Listen()
|
|
}
|